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§
Sourcetype Runtime: RuntimeLite
type Runtime: RuntimeLite
The async runtime.
Required Methods§
Sourcefn local_addr(&self) -> Result<SocketAddr>
fn local_addr(&self) -> Result<SocketAddr>
Returns the local address that this stream is bound to.
Sourcefn peer_addr(&self) -> Result<SocketAddr>
fn peer_addr(&self) -> Result<SocketAddr>
Returns the remote address that this stream is connected to.