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 Future::inspect method.

Trait Implementations

impl<A, F> Debug for Inspect<A, F> where
    A: Debug + Future,
    F: Debug
[src]

[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 successful value

An error

[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

impl<A, F> Send for Inspect<A, F> where
    A: Send,
    F: Send

impl<A, F> Sync for Inspect<A, F> where
    A: Sync,
    F: Sync