Type Alias TcpOwnedWriteHalf

Source
pub type TcpOwnedWriteHalf = OwnedWriteHalf<TcpStream>;
Expand description

OwnedWriteHalf

Aliased Type§

#[repr(transparent)]
pub struct TcpOwnedWriteHalf(pub Rc<UnsafeCell<TcpStream>>);

Tuple Fields§

§0: Rc<UnsafeCell<TcpStream>>

Implementations§

Source§

impl TcpOwnedWriteHalf

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§