Skip to main content

Unwrapping

Trait Unwrapping 

Source
pub trait Unwrapping<Incoming, Outgoing, Error>:
    Transport<Incoming, Outgoing, Error>
    + Sized
    + Unpin
where Incoming: Unwrap, Error: Error,
{ // Provided method fn unwrapping( self, ) -> Mapping<Self, Incoming, Outgoing, fn(Incoming) -> <Incoming as Unwrap>::Output, fn(Outgoing) -> Outgoing, Error> { ... } }
Available on crate feature unwrapping only.
Expand description

Transforming transport into one unwrapping incoming messages.

Provided Methods§

Source

fn unwrapping( self, ) -> Mapping<Self, Incoming, Outgoing, fn(Incoming) -> <Incoming as Unwrap>::Output, fn(Outgoing) -> Outgoing, Error>

Convert transport into one unwrapping incoming messages.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, Incoming, Outgoing, Error> Unwrapping<Incoming, Outgoing, Error> for T
where T: Transport<Incoming, Outgoing, Error> + Unpin, Incoming: Unwrap, Error: Error,