pub fn split(self) -> (ConnectionSendHalf<T>, ConnectionReceiveHalf<T>) {
        let (read, write) = tokio::io::split(self.transport);
        (
            ConnectionSendHalf {
                transport: write,
                sender: self.sender,
            },
            ConnectionReceiveHalf {
                transport: read,
                receiver: self.receiver,
            },
        )
    }
/// Splits the connection into send/receive halves.
/// Can be used as a building block for higher abstractions.
Splits the connection into send/receive halves.
Can be used as a building block for higher abstractions.
Splits the connection into send / receive halves . Can be used as a building block for higher abstractions .
pub fn split(self) -> (ConnectionSendHalf<T>, ConnectionReceiveHalf<T>) {
        let (read, write) = tokio::io::split(self.transport);
        (
            ConnectionSendHalf {
                transport: write,
                sender: self.sender,
            },
            ConnectionReceiveHalf {
                transport: read,
                receiver: self.receiver,
            },
        )
    }
pub fn split ( self ) -> ( ConnectionSendHalf < T > , ConnectionReceiveHalf < T > ) { let ( read , write ) = tokio :: io :: split ( self . transport ) ; ( ConnectionSendHalf { transport : write , sender : self . sender , } , ConnectionReceiveHalf { transport : read , receiver : self . receiver , } , ) }
Splits the connection into send/receive halves.
Splits the connection into send / receive halves .
self