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]

Check whether this is a loopback interface.

Get the IP address of this interface.

Trait Implementations

impl Debug for Interface
[src]

Formats the value using the given formatter. Read more

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

impl Hash for Interface
[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 Interface
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Interface

impl Sync for Interface