pub struct Interface {
pub name: String,
pub mac: MacAddress,
pub up: bool,
pub speed: Option<u32>,
pub physical: bool,
pub wireless: bool,
pub hardware_clock: Option<u32>,
}Fields§
§name: String§mac: MacAddress§up: boolThe link is up.
speed: Option<u32>Link speed in Mb/s, when the driver reports it.
physical: boolBacked by hardware, not a bridge, tunnel or other virtual device.
wireless: bool§hardware_clock: Option<u32>Index of the PTP hardware clock, on interfaces that timestamp in hardware.
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 UnsafeUnpin 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