Enum rsix::net::SocketAddr [−][src]
#[non_exhaustive]
pub enum SocketAddr {
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
Tuple Fields of V4
0: SocketAddrV4
V6(SocketAddrV6)
struct sockaddr_in6
Tuple Fields of V6
0: SocketAddrV6
Unix(SocketAddrUnix)
struct sockaddr_un
Tuple Fields of Unix
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 SocketAddr
impl Send for SocketAddr
impl Sync for SocketAddr
impl Unpin for SocketAddr
impl UnwindSafe for SocketAddr
Blanket Implementations
Mutably borrows from an owned value. Read more