Struct futures::future::Inspect [−][src]
#[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, F> Unpin for Inspect<Fut, F> where
Fut: Unpin + Future,
[src]
impl<Fut, F> Unpin for Inspect<Fut, F> where
Fut: Unpin + Future,
impl<Fut, F> Debug for Inspect<Fut, F> where
F: Debug,
Fut: Debug + Future,
[src]
impl<Fut, F> Debug for Inspect<Fut, F> where
F: Debug,
Fut: Debug + Future,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<Fut, F> Future for Inspect<Fut, F> where
F: FnOnce(&<Fut as Future>::Output),
Fut: Future,
[src]
impl<Fut, F> Future for Inspect<Fut, F> where
F: FnOnce(&<Fut as Future>::Output),
Fut: Future,
type Output = <Fut as Future>::Output
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(
self: PinMut<Inspect<Fut, F>>,
cx: &mut Context
) -> Poll<<Fut as Future>::Output>
[src]
fn poll(
self: PinMut<Inspect<Fut, F>>,
cx: &mut Context
) -> Poll<<Fut as Future>::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