pub struct NetworkInterface {
pub index: u32,
pub interface_type: u32,
pub description: String,
pub is_operational: bool,
pub bytes_sent: u64,
pub bytes_received: u64,
pub speed: u64,
}Fieldsยง
ยงindex: u32ยงinterface_type: u32ยงdescription: Stringยงis_operational: boolยงbytes_sent: u64ยงbytes_received: u64ยงspeed: u64Implementationsยง
Sourceยงimpl NetworkInterface
impl NetworkInterface
pub fn from_mib_ifrow(row: &MIB_IF_ROW2) -> Result<Self>
pub fn from_legacy_mib_ifrow(row: &MIB_IFROW) -> Result<Self>
pub fn is_virtual(&self) -> bool
pub fn is_loopback(&self) -> bool
pub fn is_bluetooth(&self) -> bool
pub fn total_bytes(&self) -> u64
pub fn type_name(&self) -> &'static str
pub fn formatted_speed(&self) -> String
Trait Implementationsยง
Sourceยงimpl Clone for NetworkInterface
impl Clone for NetworkInterface
Auto Trait Implementationsยง
impl Freeze for NetworkInterface
impl RefUnwindSafe for NetworkInterface
impl Send for NetworkInterface
impl Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnsafeUnpin for NetworkInterface
impl UnwindSafe for NetworkInterface
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