Struct futures::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, F> Debug for Inspect<A, F> where
A: Debug + Future,
F: Debug,
[src]
A: Debug + Future,
F: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<A, F> Future for Inspect<A, F> where
A: Future,
F: FnOnce(&<A as Future>::Item),
[src]
A: Future,
F: FnOnce(&<A as Future>::Item),
type Item = <A as Future>::Item
A successful value
type Error = <A as Future>::Error
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<A as Future>::Item>, <A as Future>::Error>
[src]
&mut self,
cx: &mut Context
) -> Result<Async<<A as Future>::Item>, <A as Future>::Error>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more