#[repr(C, packed(4))]pub struct RtnlLinkStats {Show 24 fields
pub rx_packets: u32,
pub tx_packets: u32,
pub rx_bytes: u32,
pub tx_bytes: u32,
pub rx_errors: u32,
pub tx_errors: u32,
pub rx_dropped: u32,
pub tx_dropped: u32,
pub multicast: u32,
pub collisions: u32,
pub rx_length_errors: u32,
pub rx_over_errors: u32,
pub rx_crc_errors: u32,
pub rx_frame_errors: u32,
pub rx_fifo_errors: u32,
pub rx_missed_errors: u32,
pub tx_aborted_errors: u32,
pub tx_carrier_errors: u32,
pub tx_fifo_errors: u32,
pub tx_heartbeat_errors: u32,
pub tx_window_errors: u32,
pub rx_compressed: u32,
pub tx_compressed: u32,
pub rx_nohandler: u32,
}Available on crate feature
rt-link only.Fields§
§rx_packets: u32§tx_packets: u32§rx_bytes: u32§tx_bytes: u32§rx_errors: u32§tx_errors: u32§rx_dropped: u32§tx_dropped: u32§multicast: u32§collisions: u32§rx_length_errors: u32§rx_over_errors: u32§rx_crc_errors: u32§rx_frame_errors: u32§rx_fifo_errors: u32§rx_missed_errors: u32§tx_aborted_errors: u32§tx_carrier_errors: u32§tx_fifo_errors: u32§tx_heartbeat_errors: u32§tx_window_errors: u32§rx_compressed: u32§tx_compressed: u32§rx_nohandler: u32Implementations§
Source§impl RtnlLinkStats
impl RtnlLinkStats
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 96]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 96]
pub fn from_array(buf: &[u8; 96]) -> &Self
pub fn into_array(self) -> [u8; 96]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for RtnlLinkStats
impl Clone for RtnlLinkStats
Source§impl Debug for RtnlLinkStats
impl Debug for RtnlLinkStats
Auto Trait Implementations§
impl Freeze for RtnlLinkStats
impl RefUnwindSafe for RtnlLinkStats
impl Send for RtnlLinkStats
impl Sync for RtnlLinkStats
impl Unpin for RtnlLinkStats
impl UnsafeUnpin for RtnlLinkStats
impl UnwindSafe for RtnlLinkStats
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