Trait RemoteAddr

Source
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§

Source

fn remote_addr(&self) -> Option<SocketAddr>

Returns the remote (peer) address of this connection.

Implementations on Foreign Types§

Source§

impl RemoteAddr for AddrStream

Implementors§