pub struct SocketAddrUnix { /* private fields */ }Expand description
struct sockaddr_un
Implementations§
Trait Implementations§
Source§impl Clone for SocketAddrUnix
impl Clone for SocketAddrUnix
Source§fn clone(&self) -> SocketAddrUnix
fn clone(&self) -> SocketAddrUnix
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 SocketAddrUnix
Available on Unix only.
impl Debug for SocketAddrUnix
Available on Unix only.
Source§impl From<SocketAddrUnix> for SocketAddrAny
Available on Unix only.
impl From<SocketAddrUnix> for SocketAddrAny
Available on Unix only.
Source§fn from(from: SocketAddrUnix) -> Self
fn from(from: SocketAddrUnix) -> Self
Converts to this type from the input type.
Source§impl Hash for SocketAddrUnix
Available on Unix only.
impl Hash for SocketAddrUnix
Available on Unix only.
Source§impl Ord for SocketAddrUnix
Available on Unix only.
impl Ord for SocketAddrUnix
Available on Unix only.
Source§impl PartialEq for SocketAddrUnix
Available on Unix only.
impl PartialEq for SocketAddrUnix
Available on Unix only.
Source§impl PartialOrd for SocketAddrUnix
Available on Unix only.
impl PartialOrd for SocketAddrUnix
Available on Unix only.
Source§impl SocketAddrArg for SocketAddrUnix
Available on Unix only.
impl SocketAddrArg for SocketAddrUnix
Available on Unix only.
Source§unsafe fn with_sockaddr<R>(
&self,
f: impl FnOnce(*const SocketAddrOpaque, SocketAddrLen) -> R,
) -> R
unsafe fn with_sockaddr<R>( &self, f: impl FnOnce(*const SocketAddrOpaque, SocketAddrLen) -> R, ) -> R
Call a closure with the pointer and length to the corresponding C type. Read more
Source§fn as_any(&self) -> SocketAddrAny
fn as_any(&self) -> SocketAddrAny
Convert to
SocketAddrAny.Source§unsafe fn write_sockaddr(
&self,
storage: *mut SocketAddrStorage,
) -> SocketAddrLen
unsafe fn write_sockaddr( &self, storage: *mut SocketAddrStorage, ) -> SocketAddrLen
Encode an address into a
SocketAddrStorage. Read moreSource§impl TryFrom<SocketAddrAny> for SocketAddrUnix
Available on Unix only.
impl TryFrom<SocketAddrAny> for SocketAddrUnix
Available on Unix only.
impl Eq for SocketAddrUnix
Available on Unix only.
Auto Trait Implementations§
impl Freeze for SocketAddrUnix
impl RefUnwindSafe for SocketAddrUnix
impl Send for SocketAddrUnix
impl Sync for SocketAddrUnix
impl Unpin for SocketAddrUnix
impl UnwindSafe for SocketAddrUnix
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