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>,
}
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 more