Enum posish::net::SocketAddr [−][src]
#[non_exhaustive] pub enum SocketAddr { V4(SocketAddrV4), V6(SocketAddrV6), Unix(SocketAddrUnix), }
Expand description
struct sockaddr_storage
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V4(SocketAddrV4)
struct sockaddr_in
V6(SocketAddrV6)
struct sockaddr_in6
Unix(SocketAddrUnix)
struct sockaddr_un
Implementations
Return the address family of this socket address.
Trait Implementations
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