pub trait Address: Unpin + 'static {
    fn host(&self) -> &str;
    fn port(&self) -> Option<u16>;

    fn addr(&self) -> Option<SocketAddr> { ... }
}
Expand description

Connect request

Required Methods

Host name of the request

Port of the request

Provided Methods

SocketAddr of the address

Implementations on Foreign Types

Implementors