Enum gio::UnixSocketAddressType [−][src]
#[non_exhaustive] pub enum UnixSocketAddressType { Invalid, Anonymous, Path, Abstract, AbstractPadded, // some variants omitted }
Expand description
The type of name used by a UnixSocketAddress
.
Path
indicates a traditional unix domain
socket bound to a filesystem path. Anonymous
indicates a socket not bound to any name (eg, a client-side socket,
or a socket created with socketpair()
).
For abstract sockets, there are two incompatible ways of naming
them; the man pages suggest using the entire struct sockaddr_un
as the name, padding the unused parts of the sun_path
field with
zeroes; this corresponds to AbstractPadded
.
However, many programs instead just use a portion of sun_path
, and
pass an appropriate smaller length to bind()
or connect()
. This is
Abstract
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
invalid
anonymous
a filesystem path
an abstract name
an abstract name, 0-padded to the full length of a unix socket name
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for UnixSocketAddressType
impl Send for UnixSocketAddressType
impl Sync for UnixSocketAddressType
impl Unpin for UnixSocketAddressType
impl UnwindSafe for UnixSocketAddressType
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.