Skip to main content

Split4

Trait Split4 

Source
pub trait Split4<I1, O1, I2, O2, I3, O3, I4, O4, E>:
    Transport<Message<I1, I2, I3, I4, ()>, Message<O1, O2, O3, O4, ()>, E>
    + Sized
    + Unpin
where E: Error,
{ // Provided method fn split_into_4( self, ) -> (Part<I1, O1, fn(O1) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I1, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>, Part<I2, O2, fn(O2) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I2, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>, Part<I3, O3, fn(O3) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I3, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>, Part<I4, O4, fn(O4) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I4, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>) { ... } }
Available on crate feature splitting only.
Expand description

Trait allowing transports to be split into four of different message types.

Provided Methods§

Source

fn split_into_4( self, ) -> (Part<I1, O1, fn(O1) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I1, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>, Part<I2, O2, fn(O2) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I2, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>, Part<I3, O3, fn(O3) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I3, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>, Part<I4, O4, fn(O4) -> Message<O1, O2, O3, O4, ()>, fn(Message<I1, I2, I3, I4, ()>) -> Result<I4, Message<I1, I2, I3, I4, ()>>, Self, E, I1, I2, I3, I4, ()>)

Split into four transports.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, I1, O1, I2, O2, I3, O3, I4, O4, E> Split4<I1, O1, I2, O2, I3, O3, I4, O4, E> for T
where T: Transport<Message<I1, I2, I3, I4, ()>, Message<O1, O2, O3, O4, ()>, E> + Unpin, E: Error,