Struct nix::ifaddrs::InterfaceAddress [] [src]

pub struct InterfaceAddress {
    pub interface_name: String,
    pub flags: InterfaceFlags,
    pub address: Option<SockAddr>,
    pub netmask: Option<SockAddr>,
    pub broadcast: Option<SockAddr>,
    pub destination: Option<SockAddr>,
}

Describes a single address for an interface as returned by getifaddrs.

Fields

Name of the network interface

Flags as from SIOCGIFFLAGS ioctl

Network address of this interface

Netmask of this interface

Broadcast address of this interface, if applicable

Point-to-point destination address

Trait Implementations

impl Clone for InterfaceAddress
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for InterfaceAddress
[src]

impl Hash for InterfaceAddress
[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 PartialEq for InterfaceAddress
[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 Debug for InterfaceAddress
[src]

[src]

Formats the value using the given formatter. Read more