pub trait RemoteAddr {
// Required method
fn remote_addr(&self) -> Option<SocketAddr>;
}
Expand description
Defines a method to get the remote (peer) address of a connection.
This trait might be needed to be implemented by for example custom TLS implementations.
Required Methods§
Sourcefn remote_addr(&self) -> Option<SocketAddr>
fn remote_addr(&self) -> Option<SocketAddr>
Returns the remote (peer) address of this connection.