Struct rustix::net::SocketAddrUnix
source · pub struct SocketAddrUnix { /* private fields */ }
Expand description
struct sockaddr_un
Implementations§
source§impl SocketAddrUnix
impl SocketAddrUnix
sourcepub fn new<P: Arg>(path: P) -> Result<Self>
pub fn new<P: Arg>(path: P) -> Result<Self>
Construct a new Unix-domain address from a filesystem path.
sourcepub fn new_abstract_name(name: &[u8]) -> Result<Self>
pub fn new_abstract_name(name: &[u8]) -> Result<Self>
Construct a new abstract Unix-domain address from a byte slice.
sourcepub fn abstract_name(&self) -> Option<&[u8]>
pub fn abstract_name(&self) -> Option<&[u8]>
For an abstract address, return the identifier.
Trait Implementations§
source§impl Clone for SocketAddrUnix
impl Clone for SocketAddrUnix
source§fn clone(&self) -> SocketAddrUnix
fn clone(&self) -> SocketAddrUnix
Returns a copy 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
impl Debug for SocketAddrUnix
source§impl From<SocketAddrUnix> for SocketAddrAny
impl From<SocketAddrUnix> for SocketAddrAny
source§fn from(from: SocketAddrUnix) -> Self
fn from(from: SocketAddrUnix) -> Self
Converts to this type from the input type.
source§impl Hash for SocketAddrUnix
impl Hash for SocketAddrUnix
source§impl Ord for SocketAddrUnix
impl Ord for SocketAddrUnix
source§impl PartialEq for SocketAddrUnix
impl PartialEq for SocketAddrUnix
source§impl PartialOrd for SocketAddrUnix
impl PartialOrd for SocketAddrUnix
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SocketAddrUnix
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)