Struct futures_util::future::Inspect [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Inspect<A, F> where
A: Future, { /* fields omitted */ }
Do something with the item of a future, passing it on.
This is created by the FutureExt::inspect
method.
Trait Implementations
impl<A: Debug, F: Debug> Debug for Inspect<A, F> where
A: Future,
[src]
impl<A: Debug, F: Debug> Debug for Inspect<A, F> where
A: Future,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<A, F> Future for Inspect<A, F> where
A: Future,
F: FnOnce(&A::Item),
[src]
impl<A, F> Future for Inspect<A, F> where
A: Future,
F: FnOnce(&A::Item),