Type Alias UnixOwnedReadHalf

Source
pub type UnixOwnedReadHalf = OwnedReadHalf<UnixStream>;
Expand description

OwnedReadHalf.

Aliased Type§

pub struct UnixOwnedReadHalf(pub Rc<UnsafeCell<UnixStream>>);

Tuple Fields§

§0: Rc<UnsafeCell<UnixStream>>

Implementations§

Source§

impl UnixOwnedReadHalf

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§