Type Alias TcpPipe

Source
pub type TcpPipe = Pipe<OwnedReadHalf, OwnedWriteHalf>;

Aliased Type§

struct TcpPipe { /* private fields */ }

Implementations§

Source§

impl TcpPipe

Source

pub async fn connect<A: ToSocketAddrs>(addr: A) -> Result<TcpPipe>

Trait Implementations§

Source§

impl From<TcpStream> for TcpPipe

Source§

fn from(value: TcpStream) -> Self

Converts to this type from the input type.