tokio::net::tcp::split_owned

Function split_owned

Source
pub(crate) fn split_owned(stream: TcpStream) -> (OwnedReadHalf, OwnedWriteHalf)