Trait hyper_middleware::remote_addr::RemoteAddr
source · pub trait RemoteAddr {
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.