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
name: String
The name of the interface
address: Option<IpAddr>
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.
netmask: Option<IpAddr>
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.
ifu: InterfaceIfu
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: InterfaceFlags
Flags regarding the interface's behaviour and state
Trait Implementations
impl Debug for InterfaceAddr
[src]
impl Clone for InterfaceAddr
[src]
fn clone(&self) -> InterfaceAddr
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more