pub trait Connection: AsyncRead + AsyncWrite {
// Required method
fn peer_addr(&self) -> Option<SocketAddr>;
}Expand description
A stream between a local and remote target.
Required Methods§
Sourcefn peer_addr(&self) -> Option<SocketAddr>
fn peer_addr(&self) -> Option<SocketAddr>
Returns the socket address of the remote peer of this connection.