pub fn split_unsync<T: AsyncRead + AsyncWrite>(
stream: T,
) -> (UnsyncReadHalf<T>, UnsyncWriteHalf<T>)
Expand description
Splits a single value implementing AsyncRead + AsyncWrite
into separate
AsyncRead
and AsyncWrite
handles without internal synchronization
(not Send
and Sync
).