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§
Sourcefn is_unnamed(&self) -> bool
fn is_unnamed(&self) -> bool
Returns true if the address is unnamed.
Sourcefn as_pathname(&self) -> Option<&Path>
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
impl UnixSocketAddr for SocketAddr
fn is_unnamed(&self) -> bool
fn as_pathname(&self) -> Option<&Path>
Source§impl UnixSocketAddr for SocketAddr
Available on crate feature tokio-rt only.
impl UnixSocketAddr for SocketAddr
Available on crate feature
tokio-rt only.