pub struct NetworkLayerStats {
pub packets_sent: u64,
pub packets_received: u64,
pub packets_dropped: u64,
pub protocol_errors: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
}Expand description
Statistics for a network layer
Fields§
§packets_sent: u64Packets sent through this layer
packets_received: u64Packets received by this layer
packets_dropped: u64Packets dropped due to errors
protocol_errors: u64Protocol errors encountered
bytes_sent: u64Bytes sent through this layer
bytes_received: u64Bytes received by this layer
Trait Implementations§
Source§impl Clone for NetworkLayerStats
impl Clone for NetworkLayerStats
Source§fn clone(&self) -> NetworkLayerStats
fn clone(&self) -> NetworkLayerStats
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkLayerStats
impl Debug for NetworkLayerStats
Source§impl Default for NetworkLayerStats
impl Default for NetworkLayerStats
Source§fn default() -> NetworkLayerStats
fn default() -> NetworkLayerStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NetworkLayerStats
impl RefUnwindSafe for NetworkLayerStats
impl Send for NetworkLayerStats
impl Sync for NetworkLayerStats
impl Unpin for NetworkLayerStats
impl UnwindSafe for NetworkLayerStats
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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)