Function compio_io::split

source ยท
pub fn split<T: AsyncRead + AsyncWrite>(
    stream: T,
) -> (ReadHalf<T>, WriteHalf<T>)
Expand description

Splits a single value implementing AsyncRead + AsyncWrite into separate AsyncRead and AsyncWrite handles.