Struct rustix::net::xdp::XdpStatistics
source · pub struct XdpStatistics {
pub rx_dropped: u64,
pub rx_invalid_descs: u64,
pub tx_invalid_descs: u64,
pub rx_ring_full: Option<u64>,
pub rx_fill_ring_empty_descs: Option<u64>,
pub tx_ring_empty_descs: Option<u64>,
}
Expand description
XDP statistics.
Not ABI compatible with struct xdp_statistics
Fields§
§rx_dropped: u64
Rx dropped.
rx_invalid_descs: u64
Rx invalid descriptors.
tx_invalid_descs: u64
Tx invalid descriptors.
rx_ring_full: Option<u64>
Rx ring full.
Is None
if the kernel version (<5.9) does not yet support flags.
rx_fill_ring_empty_descs: Option<u64>
Rx fill ring empty descriptors.
Is None
if the kernel version (<5.9) does not yet support flags.
tx_ring_empty_descs: Option<u64>
Tx ring empty descriptors.
Is None
if the kernel version (<5.9) does not yet support flags.
Trait Implementations§
source§impl Clone for XdpStatistics
impl Clone for XdpStatistics
source§fn clone(&self) -> XdpStatistics
fn clone(&self) -> XdpStatistics
Returns a copy 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 XdpStatistics
impl Debug for XdpStatistics
source§impl Hash for XdpStatistics
impl Hash for XdpStatistics
source§impl PartialEq for XdpStatistics
impl PartialEq for XdpStatistics
source§fn eq(&self, other: &XdpStatistics) -> bool
fn eq(&self, other: &XdpStatistics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for XdpStatistics
impl Eq for XdpStatistics
impl StructuralEq for XdpStatistics
impl StructuralPartialEq for XdpStatistics
Auto Trait Implementations§
impl RefUnwindSafe for XdpStatistics
impl Send for XdpStatistics
impl Sync for XdpStatistics
impl Unpin for XdpStatistics
impl UnwindSafe for XdpStatistics
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