#[repr(C, packed(4))]pub struct RtnlLinkStats64 {Show 25 fields
pub rx_packets: u64,
pub tx_packets: u64,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub rx_errors: u64,
pub tx_errors: u64,
pub rx_dropped: u64,
pub tx_dropped: u64,
pub multicast: u64,
pub collisions: u64,
pub rx_length_errors: u64,
pub rx_over_errors: u64,
pub rx_crc_errors: u64,
pub rx_frame_errors: u64,
pub rx_fifo_errors: u64,
pub rx_missed_errors: u64,
pub tx_aborted_errors: u64,
pub tx_carrier_errors: u64,
pub tx_fifo_errors: u64,
pub tx_heartbeat_errors: u64,
pub tx_window_errors: u64,
pub rx_compressed: u64,
pub tx_compressed: u64,
pub rx_nohandler: u64,
pub rx_otherhost_dropped: u64,
}Available on crate feature
rt-link only.Fields§
§rx_packets: u64§tx_packets: u64§rx_bytes: u64§tx_bytes: u64§rx_errors: u64§tx_errors: u64§rx_dropped: u64§tx_dropped: u64§multicast: u64§collisions: u64§rx_length_errors: u64§rx_over_errors: u64§rx_crc_errors: u64§rx_frame_errors: u64§rx_fifo_errors: u64§rx_missed_errors: u64§tx_aborted_errors: u64§tx_carrier_errors: u64§tx_fifo_errors: u64§tx_heartbeat_errors: u64§tx_window_errors: u64§rx_compressed: u64§tx_compressed: u64§rx_nohandler: u64§rx_otherhost_dropped: u64Implementations§
Source§impl RtnlLinkStats64
impl RtnlLinkStats64
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; 200]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 200]
pub fn from_array(buf: &[u8; 200]) -> &Self
pub fn into_array(self) -> [u8; 200]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for RtnlLinkStats64
impl Clone for RtnlLinkStats64
Source§impl Debug for RtnlLinkStats64
impl Debug for RtnlLinkStats64
Auto Trait Implementations§
impl Freeze for RtnlLinkStats64
impl RefUnwindSafe for RtnlLinkStats64
impl Send for RtnlLinkStats64
impl Sync for RtnlLinkStats64
impl Unpin for RtnlLinkStats64
impl UnsafeUnpin for RtnlLinkStats64
impl UnwindSafe for RtnlLinkStats64
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