Struct unix_socket::SocketAddr
source · [−]pub struct SocketAddr { /* private fields */ }Expand description
An address associated with a Unix socket.
Implementations
sourceimpl SocketAddr
impl SocketAddr
sourcepub fn is_unnamed(&self) -> bool
pub fn is_unnamed(&self) -> bool
Returns true iff the address is unnamed.
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.
Trait Implementations
sourceimpl Clone for SocketAddr
impl Clone for SocketAddr
sourcefn clone(&self) -> SocketAddr
fn clone(&self) -> SocketAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SocketAddr
impl Debug for SocketAddr
sourceimpl SocketAddrExt for SocketAddr
impl SocketAddrExt for SocketAddr
sourcefn as_abstract(&self) -> Option<&[u8]>
fn as_abstract(&self) -> Option<&[u8]>
Returns the contents of this address (without the leading
null byte) if it is an
abstract address. Read moreAuto Trait Implementations
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnwindSafe for SocketAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more