Struct network_interface::NetworkInterface [−][src]
Expand description
A system’s network interface
Fields
name: String
Interface’s name
addr: Option<Addr>
Interface’s address
Implementations
pub fn new_afinet(
name: &str,
addr: Ipv4Addr,
netmask: Netmask<Ipv4Addr>,
broadcast: Option<Ipv4Addr>
) -> NetworkInterface
pub fn new_afinet6(
name: &str,
addr: Ipv6Addr,
netmask: Netmask<Ipv6Addr>,
broadcast: Option<Ipv6Addr>
) -> NetworkInterface
Trait Implementations
List system’s network interfaces configuration
Auto Trait Implementations
impl RefUnwindSafe for NetworkInterface
impl Send for NetworkInterface
impl Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnwindSafe for NetworkInterface
Blanket Implementations
Mutably borrows from an owned value. Read more