Struct getaddrs::InterfaceAddr [] [src]

pub struct InterfaceAddr {
    pub name: String,
    pub address: Option<IpAddr>,
    pub netmask: Option<IpAddr>,
    pub ifu: InterfaceIfu,
    pub flags: InterfaceFlags,
}

Represents the configuration and state of a network interface. Interfaces are uniquely identified by name, and each interface is likely to be referred to multiple times, e.g. one for IPv4 and one for IPv6.

Fields

The name of the interface

The address assigned to the interface for this protocol. A value of None means the libc reported a type of IP address that std::net doesn't understand.

The netmasks assigned to the interface for this protocol. A value of None means the libc reported a type of IP address that std::net doesn't understand.

The ifu assigned to the interface for this protocol. A value of None means the libc reported a type of IP address that std::net doesn't understand.

Flags regarding the interface's behaviour and state

Trait Implementations

impl Debug for InterfaceAddr
[src]

[src]

Formats the value using the given formatter.

impl Clone for InterfaceAddr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more