Struct SocketAddr
pub struct SocketAddr(/* private field */);
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
impl SocketAddr
fn is_unnamed(&self) -> boolReturns
trueif the address is unnamed.Documentation reflected in
SocketAddr.fn as_pathname(&self) -> Option<&Path>Returns the contents of this address if it is a
pathnameaddress.Documentation reflected in
SocketAddr.fn as_abstract_name(&self) -> Option<&[u8]>Returns the contents of this address if it is in the abstract namespace.
Documentation reflected in
SocketAddrExt. The abstract namespace is a Linux-specific feature.
Trait Implementations
impl Clone for SocketAddr
fn clone(&self) -> SocketAddr
impl Debug for SocketAddr
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl From<SocketAddr> for SocketAddr
fn from(value: SocketAddr) -> Self
Auto Trait Implementations
impl Freeze for SocketAddr
impl RefUnwindSafe for SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnsafeUnpin for SocketAddr
impl UnwindSafe for SocketAddr
Blanket Implementations
impl<T> Any for SocketAddr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SocketAddr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SocketAddr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SocketAddr
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SocketAddr
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for SocketAddr
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for SocketAddr
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SocketAddr
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SocketAddr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>