Skip to main content

Split5

Trait Split5 

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

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

Provided Methods§

Source

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

Split into five 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, I5, O5, E> Split5<I1, O1, I2, O2, I3, O3, I4, O4, I5, O5, E> for T
where T: Transport<Message<I1, I2, I3, I4, I5>, Message<O1, O2, O3, O4, O5>, E> + Unpin, E: Error,