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.
pub fn split<T: AsyncRead + AsyncWrite>(
stream: T,
) -> (ReadHalf<T>, WriteHalf<T>)Splits stream into a read half and a write half; ReadHalf::unsplit
puts them back together.