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
impl Copy for XdpStatistics
impl Eq for XdpStatistics
impl StructuralPartialEq for XdpStatistics
Auto Trait Implementations§
impl Freeze for XdpStatistics
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)