Enum get_if_addrs::IfAddr[][src]

pub enum IfAddr {
    V4(Ifv4Addr),
    V6(Ifv6Addr),
}

Details about the address of an interface on this host

Variants

This is an Ipv4 interface.

This is an Ipv6 interface.

Methods

impl IfAddr
[src]

Check whether this is a loopback address.

Get the IP address of this interface address.

Trait Implementations

impl Debug for IfAddr
[src]

Formats the value using the given formatter. Read more

impl PartialEq for IfAddr
[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 IfAddr
[src]

impl Hash for IfAddr
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for IfAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for IfAddr

impl Sync for IfAddr