Struct nix::ifaddrs::InterfaceAddress
source · pub struct InterfaceAddress {
pub interface_name: String,
pub flags: InterfaceFlags,
pub address: Option<SockaddrStorage>,
pub netmask: Option<SockaddrStorage>,
pub broadcast: Option<SockaddrStorage>,
pub destination: Option<SockaddrStorage>,
}
Available on crate feature
net
only.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<SockaddrStorage>
Network address of this interface
netmask: Option<SockaddrStorage>
Netmask of this interface
broadcast: Option<SockaddrStorage>
Broadcast address of this interface, if applicable
destination: Option<SockaddrStorage>
Point-to-point destination address
Trait Implementations§
source§impl Clone for InterfaceAddress
impl Clone for InterfaceAddress
source§fn clone(&self) -> InterfaceAddress
fn clone(&self) -> InterfaceAddress
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InterfaceAddress
impl Debug for InterfaceAddress
source§impl Hash for InterfaceAddress
impl Hash for InterfaceAddress
source§impl PartialEq<InterfaceAddress> for InterfaceAddress
impl PartialEq<InterfaceAddress> for InterfaceAddress
source§fn eq(&self, other: &InterfaceAddress) -> bool
fn eq(&self, other: &InterfaceAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.