UnixSocketAddr

Trait UnixSocketAddr 

Source
pub trait UnixSocketAddr {
    // Required methods
    fn is_unnamed(&self) -> bool;
    fn as_pathname(&self) -> Option<&Path>;
}
Available on Unix only.
Expand description

An async abstraction over std::os::unix::net::SocketAddr.

Required Methods§

Source

fn is_unnamed(&self) -> bool

Returns true if the address is unnamed.

Source

fn as_pathname(&self) -> Option<&Path>

Returns the contents of this address if it is a pathname address.

Implementations on Foreign Types§

Source§

impl UnixSocketAddr for SocketAddr

Source§

impl UnixSocketAddr for SocketAddr

Available on crate feature tokio-rt only.

Implementors§