pub struct CaptureStats {
pub packets: u32,
pub drops: u32,
pub freeze_count: u32,
}Expand description
Capture statistics from the kernel.
Reading stats via stats() resets the kernel counters.
Fields§
§packets: u32Total packets received (passed filter).
drops: u32Packets dropped due to ring buffer full.
freeze_count: u32Number of times the ring buffer was frozen.
Trait Implementations§
Source§impl Clone for CaptureStats
impl Clone for CaptureStats
Source§fn clone(&self) -> CaptureStats
fn clone(&self) -> CaptureStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptureStats
impl Debug for CaptureStats
Source§impl Default for CaptureStats
impl Default for CaptureStats
Source§fn default() -> CaptureStats
fn default() -> CaptureStats
Returns the “default value” for a type. Read more
Source§impl Display for CaptureStats
impl Display for CaptureStats
Source§impl From<tpacket_stats_v3> for CaptureStats
impl From<tpacket_stats_v3> for CaptureStats
Source§fn from(s: tpacket_stats_v3) -> Self
fn from(s: tpacket_stats_v3) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CaptureStats
impl PartialEq for CaptureStats
Source§fn eq(&self, other: &CaptureStats) -> bool
fn eq(&self, other: &CaptureStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CaptureStats
impl Eq for CaptureStats
impl StructuralPartialEq for CaptureStats
Auto Trait Implementations§
impl Freeze for CaptureStats
impl RefUnwindSafe for CaptureStats
impl Send for CaptureStats
impl Sync for CaptureStats
impl Unpin for CaptureStats
impl UnsafeUnpin for CaptureStats
impl UnwindSafe for CaptureStats
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.