Enum rustix::net::SocketAddrAny
source · [−]#[non_exhaustive]
pub enum SocketAddrAny {
V4(SocketAddrV4),
V6(SocketAddrV6),
Unix(SocketAddrUnix),
}
Expand description
struct sockaddr_storage
as a Rust enum.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
V4(SocketAddrV4)
struct sockaddr_in
V6(SocketAddrV6)
struct sockaddr_in6
Unix(SocketAddrUnix)
struct sockaddr_un
Implementations
Return the address family of this socket address.
Writes a platform-specific encoding of this socket address to
the memory pointed to by storage
, and returns the number of
bytes used.
Safety
storage
must point to valid memory for encoding the socket
address.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for SocketAddrAny
impl Send for SocketAddrAny
impl Sync for SocketAddrAny
impl Unpin for SocketAddrAny
impl UnwindSafe for SocketAddrAny
Blanket Implementations
Mutably borrows from an owned value. Read more