pub struct PushRtnlLinkStats { /* private fields */ }Available on crate feature
rt-link only.Implementations§
Source§impl PushRtnlLinkStats
impl PushRtnlLinkStats
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from other 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 as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub const fn len() -> usize
pub fn rx_packets(&self) -> u32
pub fn set_rx_packets(&mut self, value: u32)
pub fn tx_packets(&self) -> u32
pub fn set_tx_packets(&mut self, value: u32)
pub fn rx_bytes(&self) -> u32
pub fn set_rx_bytes(&mut self, value: u32)
pub fn tx_bytes(&self) -> u32
pub fn set_tx_bytes(&mut self, value: u32)
pub fn rx_errors(&self) -> u32
pub fn set_rx_errors(&mut self, value: u32)
pub fn tx_errors(&self) -> u32
pub fn set_tx_errors(&mut self, value: u32)
pub fn rx_dropped(&self) -> u32
pub fn set_rx_dropped(&mut self, value: u32)
pub fn tx_dropped(&self) -> u32
pub fn set_tx_dropped(&mut self, value: u32)
pub fn multicast(&self) -> u32
pub fn set_multicast(&mut self, value: u32)
pub fn collisions(&self) -> u32
pub fn set_collisions(&mut self, value: u32)
pub fn rx_length_errors(&self) -> u32
pub fn set_rx_length_errors(&mut self, value: u32)
pub fn rx_over_errors(&self) -> u32
pub fn set_rx_over_errors(&mut self, value: u32)
pub fn rx_crc_errors(&self) -> u32
pub fn set_rx_crc_errors(&mut self, value: u32)
pub fn rx_frame_errors(&self) -> u32
pub fn set_rx_frame_errors(&mut self, value: u32)
pub fn rx_fifo_errors(&self) -> u32
pub fn set_rx_fifo_errors(&mut self, value: u32)
pub fn rx_missed_errors(&self) -> u32
pub fn set_rx_missed_errors(&mut self, value: u32)
pub fn tx_aborted_errors(&self) -> u32
pub fn set_tx_aborted_errors(&mut self, value: u32)
pub fn tx_carrier_errors(&self) -> u32
pub fn set_tx_carrier_errors(&mut self, value: u32)
pub fn tx_fifo_errors(&self) -> u32
pub fn set_tx_fifo_errors(&mut self, value: u32)
pub fn tx_heartbeat_errors(&self) -> u32
pub fn set_tx_heartbeat_errors(&mut self, value: u32)
pub fn tx_window_errors(&self) -> u32
pub fn set_tx_window_errors(&mut self, value: u32)
pub fn rx_compressed(&self) -> u32
pub fn set_rx_compressed(&mut self, value: u32)
pub fn tx_compressed(&self) -> u32
pub fn set_tx_compressed(&mut self, value: u32)
pub fn rx_nohandler(&self) -> u32
pub fn set_rx_nohandler(&mut self, value: u32)
Trait Implementations§
Source§impl Clone for PushRtnlLinkStats
impl Clone for PushRtnlLinkStats
Source§fn clone(&self) -> PushRtnlLinkStats
fn clone(&self) -> PushRtnlLinkStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PushRtnlLinkStats
impl Debug for PushRtnlLinkStats
Auto Trait Implementations§
impl Freeze for PushRtnlLinkStats
impl RefUnwindSafe for PushRtnlLinkStats
impl Send for PushRtnlLinkStats
impl Sync for PushRtnlLinkStats
impl Unpin for PushRtnlLinkStats
impl UnwindSafe for PushRtnlLinkStats
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