pub struct TokioSocketAddress(/* private fields */);Expand description
An address associated with a Tokio 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.
Implementations§
Source§impl SocketAddr
impl SocketAddr
Sourcepub fn is_unnamed(&self) -> bool
Available on target_family="unix" only.
pub fn is_unnamed(&self) -> bool
target_family="unix" only.Returns true if the address is unnamed.
Documentation reflected in SocketAddr
Sourcepub fn as_pathname(&self) -> Option<&Path>
Available on target_family="unix" only.
pub fn as_pathname(&self) -> Option<&Path>
target_family="unix" only.Returns the contents of this address if it is a pathname address.
Documentation reflected in SocketAddr
Trait Implementations§
Source§impl Clone for SocketAddr
impl Clone for SocketAddr
Source§fn clone(&self) -> SocketAddr
fn clone(&self) -> SocketAddr
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 SocketAddr
impl Debug for SocketAddr
Source§impl From<SocketAddr> for SocketAddr
impl From<SocketAddr> for SocketAddr
Source§fn from(value: SocketAddr) -> SocketAddr
fn from(value: SocketAddr) -> SocketAddr
Converts to this type from the input type.
Source§impl From<SocketAddr> for UnixSocketAddress
Available on target_family="unix" only.
impl From<SocketAddr> for UnixSocketAddress
Available on
target_family="unix" only.Source§fn from(value: TokioSocketAddress) -> Self
fn from(value: TokioSocketAddress) -> Self
Converts to this type from the input type.
Source§impl From<UnixSocketAddress> for TokioSocketAddress
Available on target_family="unix" only.
impl From<UnixSocketAddress> for TokioSocketAddress
Available on
target_family="unix" only.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 SocketAddr
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnwindSafe for SocketAddr
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