Enum nix::sys::socket::InetAddr [] [src]

pub enum InetAddr {
    V4(sockaddr_in),
    V6(sockaddr_in6),
}

Variants

Methods

impl InetAddr
[src]

Gets the IP address associated with this socket address.

Gets the port number associated with this socket address

Trait Implementations

impl Copy for InetAddr
[src]

impl PartialEq for InetAddr
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for InetAddr
[src]

impl Hash for InetAddr
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Clone for InetAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for InetAddr
[src]

Formats the value using the given formatter.