SplitEx

Trait SplitEx 

Source
pub trait SplitEx {
    type Reader: ReadEx + Unpin;
    type Writer: WriteEx + Unpin;

    // Required method
    fn split(self) -> (Self::Reader, Self::Writer);
}
Expand description

SplitEx Trait for read and write separation

Required Associated Types§

Source

type Reader: ReadEx + Unpin

read half

Source

type Writer: WriteEx + Unpin

write half

Required Methods§

Source

fn split(self) -> (Self::Reader, Self::Writer)

split Self to independent reader and writer

Implementors§