Type Alias TcpOwnedReadHalf

Source
pub type TcpOwnedReadHalf = OwnedReadHalf<TcpStream>;
Expand description

OwnedReadHalf.

Aliased Type§

pub struct TcpOwnedReadHalf(pub Rc<UnsafeCell<TcpStream>>);

Tuple Fields§

§0: Rc<UnsafeCell<TcpStream>>

Implementations§

Source§

impl TcpOwnedReadHalf

Source

pub fn peer_addr(&self) -> Result<SocketAddr>

Returns the remote address that this stream is connected to.

Source

pub fn local_addr(&self) -> Result<SocketAddr>

Returns the local address that this stream is bound to.

Trait Implementations§