IntoHalves

Trait IntoHalves 

Source
pub trait IntoHalves {
    type Read: ReadOwned;
    type Write: WriteOwned;

    // Required method
    fn into_halves(self) -> (Self::Read, Self::Write);
}

Required Associated Types§

Required Methods§

Source

fn into_halves(self) -> (Self::Read, Self::Write)

Split this into an owned read half and an owned write half.

Implementations on Foreign Types§

Source§

impl IntoHalves for TcpStream

Implementors§