Skip to main content

Address

Trait Address 

Source
pub trait Address:
    Clone
    + Debug
    + Send
    + Sync
    + Unpin
    + Hash
    + Eq
    + 'static { }
Expand description

A trait for address types that can be used by any transport.

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

IP address types, used for TCP and QUIC transports.

Source§

impl Address for PathBuf

File system path, used for IPC transport.

Implementors§