Trait AsyncOperatorExt

Source
pub trait AsyncOperatorExt<I>: AsyncOperator<I> {
    // Provided methods
    fn and_then<P2>(self, other: P2) -> Then<I, Self, P2>
       where Self: Sized,
             P2: AsyncOperator<Self::Output> { ... }
    fn map_err<E, F>(self, f: F) -> MapErr<F, Self>
       where Self: Sized,
             F: FnMut(Self::Error) -> E { ... }
}
Expand description

Extention trait for async operators.

Provided Methods§

Source

fn and_then<P2>(self, other: P2) -> Then<I, Self, P2>
where Self: Sized, P2: AsyncOperator<Self::Output>,

And then.

Source

fn map_err<E, F>(self, f: F) -> MapErr<F, Self>
where Self: Sized, F: FnMut(Self::Error) -> E,

Convert error.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I, P> AsyncOperatorExt<I> for P
where P: AsyncOperator<I>,