Struct pnet_datalink::NetworkInterface [] [src]

pub struct NetworkInterface {
    pub name: String,
    pub index: u32,
    pub mac: Option<MacAddr>,
    pub ips: Vec<IpNetwork>,
    pub flags: u32,
}

Represents a network interface and its associated addresses

Fields

The name of the interface

The interface index (operating system specific)

A MAC address for the interface

IP addresses and netmasks for the interface

Operating system specific flags for the interface

Methods

impl NetworkInterface
[src]

[src]

Retrieve the MAC address associated with the interface

[src]

[src]

[src]

Is the interface a loopback interface?

[src]

[src]

Trait Implementations

impl Clone for NetworkInterface
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl Debug for NetworkInterface
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations