futures_util::io::split

Function split

Source
pub(super) fn split<T: AsyncRead + AsyncWrite>(
    t: T,
) -> (ReadHalf<T>, WriteHalf<T>)