pub trait SplitIo {
// Required method
fn split(self) -> Result<(SplitReader<Self>, SplitWriter<Self>)>
where Self: Read + Write + Sized;
}
Expand description
This is trait that split an io obj into two parts one is for read operation, another is for write operation
Required Methods§
sourcefn split(self) -> Result<(SplitReader<Self>, SplitWriter<Self>)>
fn split(self) -> Result<(SplitReader<Self>, SplitWriter<Self>)>
split the io into read and write part