OwnedWriteHalf

Trait OwnedWriteHalf 

Source
pub trait OwnedWriteHalf:
    AsyncWrite
    + Unpin
    + Send
    + Sync
    + 'static {
    type Runtime: RuntimeLite;

    // Required methods
    fn forget(self);
    fn local_addr(&self) -> Result<SocketAddr>;
    fn peer_addr(&self) -> Result<SocketAddr>;
}
Expand description

The abstraction of a owned write half of a TcpStream.

Required Associated Types§

Source

type Runtime: RuntimeLite

The async runtime.

Required Methods§

Source

fn forget(self)

Shuts down the write half and without closing the read half.

Source

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

Returns the local address that this stream is bound to.

Source

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

Returns the remote address that this stream is connected to.

Implementors§