pub struct SocketAddrUnix {
pub(crate) unix: sockaddr_un,
len: socklen_t,
}
Expand description
struct sockaddr_un
Fields§
§unix: sockaddr_un
§len: socklen_t
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.
fn _new(path: &CStr) -> Result<Self>
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.
const fn init() -> sockaddr_un
sourcepub fn abstract_name(&self) -> Option<&[u8]>
pub fn abstract_name(&self) -> Option<&[u8]>
For an abstract address, return the identifier.
pub(crate) fn addr_len(&self) -> socklen_t
pub(crate) fn len(&self) -> usize
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