[−][src]Struct futures_util::future::Inspect
#[must_use = "futures do nothing unless polled"]pub struct Inspect<Fut, F> where
Fut: Future, { /* fields omitted */ }
Do something with the item of a future, passing it on.
This is created by the super::FutureExt::inspect method.
Trait Implementations
impl<Fut: Debug, F: Debug> Debug for Inspect<Fut, F> where
Fut: Future, [src]
impl<Fut: Debug, F: Debug> Debug for Inspect<Fut, F> where
Fut: Future, 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: Future + Unpin, F> Unpin for Inspect<Fut, F>[src]
impl<Fut: Future + Unpin, F> Unpin for Inspect<Fut, F>impl<Fut, F> Future for Inspect<Fut, F> where
Fut: Future,
F: FnOnce(&Fut::Output), [src]
impl<Fut, F> Future for Inspect<Fut, F> where
Fut: Future,
F: FnOnce(&Fut::Output), type Output = Fut::Output
🔬 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<Fut::Output>[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Fut::Output>🔬 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