[−][src]Function tokio::io::split
pub fn split<T>(stream: T) -> (ReadHalf<T>, WriteHalf<T>) where
T: AsyncRead + AsyncWrite, Split a single value implementing AsyncRead + AsyncWrite into separate
AsyncRead and AsyncWrite handles.
To restore this read/write object from its split::ReadHalf and
split::WriteHalf use unsplit.