pub struct Interface {
pub name: String,
pub addr: IfAddr,
pub index: Option<u32>,
}
Expand description
Details about an interface on this host.
Fields§
§name: String
The name of the interface.
addr: IfAddr
The address details of the interface.
index: Option<u32>
The index of the interface.
Implementations§
source§impl Interface
impl Interface
sourcepub const fn is_loopback(&self) -> bool
pub const fn is_loopback(&self) -> bool
Check whether this is a loopback interface.
sourcepub const fn is_link_local(&self) -> bool
pub const fn is_link_local(&self) -> bool
Check whether this is a link local interface.
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)