Struct sysinfo::NetworkData
source · pub struct NetworkData { /* private fields */ }
Expand description
Contains network interface information.
Trait Implementations§
source§impl Debug for NetworkData
impl Debug for NetworkData
source§impl NetworkExt for NetworkData
impl NetworkExt for NetworkData
source§fn received(&self) -> u64
fn received(&self) -> u64
Returns the number of received bytes since the last refresh. Read more
source§fn total_received(&self) -> u64
fn total_received(&self) -> u64
Returns the total number of received bytes. Read more
source§fn transmitted(&self) -> u64
fn transmitted(&self) -> u64
Returns the number of transmitted bytes since the last refresh. Read more
source§fn total_transmitted(&self) -> u64
fn total_transmitted(&self) -> u64
Returns the total number of transmitted bytes. Read more
source§fn packets_received(&self) -> u64
fn packets_received(&self) -> u64
Returns the number of incoming packets since the last refresh. Read more
source§fn total_packets_received(&self) -> u64
fn total_packets_received(&self) -> u64
Returns the total number of incoming packets. Read more
source§fn packets_transmitted(&self) -> u64
fn packets_transmitted(&self) -> u64
Returns the number of outcoming packets since the last refresh. Read more
source§fn total_packets_transmitted(&self) -> u64
fn total_packets_transmitted(&self) -> u64
Returns the total number of outcoming packets. Read more
source§fn errors_on_received(&self) -> u64
fn errors_on_received(&self) -> u64
Returns the number of incoming errors since the last refresh. Read more
source§fn total_errors_on_received(&self) -> u64
fn total_errors_on_received(&self) -> u64
Returns the total number of incoming errors. Read more
source§fn errors_on_transmitted(&self) -> u64
fn errors_on_transmitted(&self) -> u64
Returns the number of outcoming errors since the last refresh. Read more
source§fn total_errors_on_transmitted(&self) -> u64
fn total_errors_on_transmitted(&self) -> u64
Returns the total number of outcoming errors. Read more
source§fn mac_address(&self) -> MacAddr
fn mac_address(&self) -> MacAddr
Returns the MAC address associated to current interface. Read more
Auto Trait Implementations§
impl Freeze for NetworkData
impl RefUnwindSafe for NetworkData
impl Send for NetworkData
impl Sync for NetworkData
impl Unpin for NetworkData
impl UnwindSafe for NetworkData
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