Trait netservices::SplitIo

source ·
pub trait SplitIo: Sized {
    type Read: Read + Sized;
    type Write: Write + Sized;

    fn split_io(self) -> Result<(Self::Read, Self::Write), SplitIoError<Self>>;
    fn from_split_io(read: Self::Read, write: Self::Write) -> Self;
}

Required Associated Types§

Required Methods§

Panics

If the split operation is not possible

Implementations on Foreign Types§

Implementors§