[−][src]Struct futures_util::future::UnitError
#[must_use = "futures do nothing unless polled"]pub struct UnitError<Fut> { /* fields omitted */ }
Future for the unit_error combinator, turning a Future into a TryFuture.
This is created by the FutureExt::unit_error method.
Trait Implementations
impl<Fut: Debug> Debug for UnitError<Fut>[src]
impl<Fut: Debug> Debug for UnitError<Fut>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<Fut: Unpin> Unpin for UnitError<Fut>[src]
impl<Fut: Unpin> Unpin for UnitError<Fut>impl<Fut, T> Future for UnitError<Fut> where
Fut: Future<Output = T>, [src]
impl<Fut, T> Future for UnitError<Fut> where
Fut: Future<Output = T>, type Output = Result<T, ()>
🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
The result of the Future.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Result<T, ()>>[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Result<T, ()>>🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more