Struct nix::sys::socket::UnixAddr [−][src]
pub struct UnixAddr { /* fields omitted */ }
Expand description
A wrapper around sockaddr_un
.
Implementations
Create a new sockaddr_un representing a filesystem path.
Create a new sockaddr_un
representing an address in the “abstract namespace”.
The leading null byte for the abstract namespace is automatically added;
thus the input path
is expected to be the bare name, not null-prefixed.
This is a Linux-specific extension, primarily used to allow chrooted
processes to communicate with processes having a different filesystem view.
If this address represents a filesystem path, return that path.
If this address represents an abstract socket, return its name.
For abstract sockets only the bare name is returned, without the
leading null byte. None
is returned for unnamed or path-backed sockets.
Returns the addrlen of this socket - offsetof(struct sockaddr_un, sun_path)
Returns a pointer to the raw sockaddr_un
struct
Returns a mutable pointer to the raw sockaddr_un
struct
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnixAddr
impl UnwindSafe for UnixAddr
Blanket Implementations
Mutably borrows from an owned value. Read more