pub struct UnixSocketAddress(/* private fields */);Available on
target_family="unix" only.Expand description
An address associated with a Unix socket.
This type is a thin wrapper around std::os::unix::net::SocketAddr. You
can convert to and from the standard library SocketAddr type using the
From trait. It is also just as easily convertabible to and from a tokio unix SocketAddr.
Implementations§
Source§impl UnixSocketAddress
impl UnixSocketAddress
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
Trait Implementations§
Source§impl Clone for UnixSocketAddress
impl Clone for UnixSocketAddress
Source§fn clone(&self) -> UnixSocketAddress
fn clone(&self) -> UnixSocketAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnixSocketAddress
impl Debug for UnixSocketAddress
Source§impl From<SocketAddr> for UnixSocketAddress
impl From<SocketAddr> for UnixSocketAddress
Source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddr> for UnixSocketAddress
impl From<SocketAddr> for UnixSocketAddress
Source§fn from(value: TokioSocketAddress) -> Self
fn from(value: TokioSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<UnixSocketAddress> for SocketAddr
impl From<UnixSocketAddress> for SocketAddr
Source§fn from(value: UnixSocketAddress) -> Self
fn from(value: UnixSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<UnixSocketAddress> for TokioSocketAddress
impl From<UnixSocketAddress> for TokioSocketAddress
Source§fn from(value: UnixSocketAddress) -> Self
fn from(value: UnixSocketAddress) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnixSocketAddress
impl RefUnwindSafe for UnixSocketAddress
impl Send for UnixSocketAddress
impl Sync for UnixSocketAddress
impl Unpin for UnixSocketAddress
impl UnwindSafe for UnixSocketAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more