pub struct Interface {
pub name: String,
pub ipv4: String,
pub stat: IfaceStat,
pub mtu: u32,
pub mac_address: String,
pub speed: u64,
}
Expand description
Represents a network interface on host os
Fields§
§name: String
Name of this interface
ipv4: String
IPv4 address of this interface
stat: IfaceStat
Stats of this interface from /proc/net/dev
mtu: u32
Maximum transmission unit
mac_address: String
§speed: u64
Speed in mb/s
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