Struct get_if_addrs::Interface [] [src]

pub struct Interface {
    pub name: String,
    pub addr: IfAddr,
}

Details about an interface on this host

Fields

The name of the interface.

The address details of the interface.

Methods

impl Interface
[src]

[src]

Check whether this is a loopback interface.

[src]

Get the IP address of this interface.

Trait Implementations

impl Debug for Interface
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Interface
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Interface
[src]

impl Hash for Interface
[src]

[src]

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

1.3.0
[src]

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

impl Clone for Interface
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more