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>, }
Expand description
Describes a single address for an interface as returned by getifaddrs
.
Fields
interface_name: String
Name of the network interface
flags: InterfaceFlags
Flags as from SIOCGIFFLAGS
ioctl
address: Option<SockAddr>
Network address of this interface
netmask: Option<SockAddr>
Netmask of this interface
broadcast: Option<SockAddr>
Broadcast address of this interface, if applicable
destination: Option<SockAddr>
Point-to-point destination address
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InterfaceAddress
impl Send for InterfaceAddress
impl Sync for InterfaceAddress
impl Unpin for InterfaceAddress
impl UnwindSafe for InterfaceAddress
Blanket Implementations
Mutably borrows from an owned value. Read more