pub struct Interface { /* private fields */ }
Implementations§
Source§impl Interface
impl Interface
Sourcepub fn mac(&self) -> [u8; 6]
pub fn mac(&self) -> [u8; 6]
MAC address, a.k.a., link-layer address, a.k.a., physical address.
Sourcepub fn address(&self) -> &IpAddr
pub fn address(&self) -> &IpAddr
Interface address.
Note that ifa.address().is_loopback()
returns false for link-local addresses such as fe80::1%lo0 although
they are what would usually be thought of as “local” addresses.
pub fn netmask(&self) -> &IpAddr
Trait Implementations§
impl Eq for Interface
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more