Struct mio::net::SocketAddr
source · pub struct SocketAddr { /* private fields */ }
Expand description
An address associated with a mio
specific Unix socket.
This is implemented instead of imported from net::SocketAddr
because
there is no way to create a net::SocketAddr
. One must be returned by
accept
, so this is returned instead.
Implementations§
source§impl SocketAddr
impl SocketAddr
sourcepub fn is_unnamed(&self) -> bool
pub fn is_unnamed(&self) -> bool
Returns true
if the address is unnamed.
Documentation reflected in SocketAddr
sourcepub fn as_pathname(&self) -> Option<&Path>
pub fn as_pathname(&self) -> Option<&Path>
Returns the contents of this address if it is a pathname
address.
Documentation reflected in SocketAddr
sourcepub fn as_abstract_namespace(&self) -> Option<&[u8]>
pub fn as_abstract_namespace(&self) -> Option<&[u8]>
Returns the contents of this address if it is an abstract namespace without the leading null byte.