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.
pub fn split<T: AsyncRead + AsyncWrite>(
stream: T,
) -> (ReadHalf<T>, WriteHalf<T>)
Splits a single value implementing AsyncRead + AsyncWrite
into separate
AsyncRead
and AsyncWrite
handles.