pub trait TransmitExt: Transmit {
    // Provided methods
    fn with<F, U>(self, f: F) -> With<Self, F, Self::Item, U, Self::Error>
       where Self: Sized + Send,
             Self::Item: Send,
             Self::Error: Send,
             F: FnMut(U) -> Self::Item + Send,
             U: Send { ... }
    fn transmit_map_err<E, F>(self, f: F) -> TransmitMapErr<Self, F>
       where Self: Sized + Send,
             Self::Item: Send,
             F: FnOnce(Self::Error) -> E + Send { ... }
}
Expand description

An extension trait for Transmits that provides a variety of convenient functions.

Provided Methods§

source

fn with<F, U>(self, f: F) -> With<Self, F, Self::Item, U, Self::Error>where Self: Sized + Send, Self::Item: Send, Self::Error: Send, F: FnMut(U) -> Self::Item + Send, U: Send,

source

fn transmit_map_err<E, F>(self, f: F) -> TransmitMapErr<Self, F>where Self: Sized + Send, Self::Item: Send, F: FnOnce(Self::Error) -> E + Send,

Implementors§

source§

impl<T> TransmitExt for Twhere T: Transmit + ?Sized,