Skip to main content

split

Function split 

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

Splits stream into a read half and a write half; ReadHalf::unsplit puts them back together.