Struct xsk_rs::socket::XdpStatistics
source · [−]pub struct XdpStatistics(_);
Expand description
AF_XDP Socket
statistics.
Can be retrieved by calling xdp_statistics
.
Implementations
sourceimpl XdpStatistics
impl XdpStatistics
sourcepub fn rx_invalid_descs(&self) -> u64
pub fn rx_invalid_descs(&self) -> u64
Received packets dropped due to an invalid descriptor.
sourcepub fn rx_ring_full(&self) -> u64
pub fn rx_ring_full(&self) -> u64
Received packets dropped due to rx ring being full.
sourcepub fn rx_dropped(&self) -> u64
pub fn rx_dropped(&self) -> u64
Received packets dropped for other reasons.
sourcepub fn tx_invalid_descs(&self) -> u64
pub fn tx_invalid_descs(&self) -> u64
Packets to be sent but dropped due to an invalid desccriptor.
sourcepub fn rx_fill_ring_empty_descs(&self) -> u64
pub fn rx_fill_ring_empty_descs(&self) -> u64
Items failed to be retrieved from fill ring.
sourcepub fn tx_ring_empty_descs(&self) -> u64
pub fn tx_ring_empty_descs(&self) -> u64
Items failed to be retrieved from tx ring.
Trait Implementations
sourceimpl Clone for XdpStatistics
impl Clone for XdpStatistics
sourcefn clone(&self) -> XdpStatistics
fn clone(&self) -> XdpStatistics
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for XdpStatistics
impl Debug for XdpStatistics
sourceimpl Default for XdpStatistics
impl Default for XdpStatistics
sourcefn default() -> XdpStatistics
fn default() -> XdpStatistics
Returns the “default value” for a type. Read more
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more