Address

Trait Address 

Source
pub trait Address: Sized + Clone {
    type Stream;
    type Listener: AddrListener<Self::Stream, Self>;
}
Expand description

An address which an associated AddrListener can bind to.

Required Associated Types§

Source

type Stream

The underlying stream we will obtain once an AddrListener is bound to this address.

Source

type Listener: AddrListener<Self::Stream, Self>

An AddrListener that can bind to this Address.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Address for SocketAddr

Source§

impl Address for SocketAddr

Available on Unix only.

Implementors§