pub struct Nic(/* private fields */);
Expand description
Network interface device.
Implementations§
Source§impl Nic
impl Nic
Sourcepub fn destination(&self) -> Option<Address>
pub fn destination(&self) -> Option<Address>
Returns destination address if available.
Sourcepub fn is_loopback(&self) -> bool
pub fn is_loopback(&self) -> bool
Returns bool
indicating whether interface is loopback.
Sourcepub fn is_multicast(&self) -> bool
pub fn is_multicast(&self) -> bool
Returns bool
indicating whether interface is multicast.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Nic
impl RefUnwindSafe for Nic
impl Send for Nic
impl Sync for Nic
impl Unpin for Nic
impl UnwindSafe for Nic
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