[][src]Trait tap::TapFutureOps

pub trait TapFutureOps<T, E> {
    fn tap_ready<R, F: FnOnce(&T) -> R>(self, f: F) -> Self;
fn tap_not_ready<R, F: FnOnce() -> R>(self, f: F) -> Self;
fn tap_err<R, F: FnOnce(&E) -> R>(self, f: F) -> Self; }

Tap operations for Future, requires the feature future.

Required methods

fn tap_ready<R, F: FnOnce(&T) -> R>(self, f: F) -> Self

Executes a closure if the value is Async::Ready(T).

fn tap_not_ready<R, F: FnOnce() -> R>(self, f: F) -> Self

fn tap_err<R, F: FnOnce(&E) -> R>(self, f: F) -> Self

Loading content...

Implementors

impl<T, E, FUT: Future<Item = T, Error = E>> TapFutureOps<T, E> for FUT[src]

Loading content...