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§
Sourcetype Stream
type Stream
The underlying stream we will obtain once an AddrListener is bound to this address.
Sourcetype Listener: AddrListener<Self::Stream, Self>
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
Available on Unix only.
impl Address for SocketAddr
Available on Unix only.