pub fn into_split(
        self,
    ) -> (
        TransportReadHalf<T::Read, U>,
        TransportWriteHalf<T::Write, U>,
    ) {
        let parts = self.0.into_parts();
        let (read_half, write_half) = parts.io.into_split();

        // Create our split read half and populate its buffer with existing contents
        let mut f_read = FramedRead::new(read_half, parts.codec.clone());
        *f_read.read_buffer_mut() = parts.read_buf;

        // Create our split write half and populate its buffer with existing contents
        let mut f_write = FramedWrite::new(write_half, parts.codec);
        *f_write.write_buffer_mut() = parts.write_buf;

        let t_read = TransportReadHalf(f_read);
        let t_write = TransportWriteHalf(f_write);

        (t_read, t_write)
    }
/// Splits transport into read and write halves
Splits transport into read and write halves
Splits transport into read and write halves
pub fn into_split(
        self,
    ) -> (
        TransportReadHalf<T::Read, U>,
        TransportWriteHalf<T::Write, U>,
    ) {
        let parts = self.0.into_parts();
        let (read_half, write_half) = parts.io.into_split();
        // Create our split read half and populate its buffer with existing contents
        let mut f_read = FramedRead::new(read_half, parts.codec.clone());
        *f_read.read_buffer_mut() = parts.read_buf;
        // Create our split write half and populate its buffer with existing contents
        let mut f_write = FramedWrite::new(write_half, parts.codec);
        *f_write.write_buffer_mut() = parts.write_buf;
        let t_read = TransportReadHalf(f_read);
        let t_write = TransportWriteHalf(f_write);
        (t_read, t_write)
    }
pub fn into_split ( self , ) -> ( TransportReadHalf < T :: Read , U > , TransportWriteHalf < T :: Write , U > , ) { let parts = self . 0 . into_parts ( ) ; let ( read_half , write_half ) = parts . io . into_split ( ) ; // Create our split read half and populate its buffer with existing contents let mut f_read = FramedRead :: new ( read_half , parts . codec . clone ( ) ) ; * f_read . read_buffer_mut ( ) = parts . read_buf ; // Create our split write half and populate its buffer with existing contents let mut f_write = FramedWrite :: new ( write_half , parts . codec ) ; * f_write . write_buffer_mut ( ) = parts . write_buf ; let t_read = TransportReadHalf ( f_read ) ; let t_write = TransportWriteHalf ( f_write ) ; ( t_read , t_write ) }
Splits transport into read and write halves
Splits transport into read and write halves
self