pub struct CaptureStats {
pub received: u32,
pub dropped: u32,
pub if_dropped: u32,
}Expand description
Packet capture statistics
Fields§
§received: u32§dropped: u32§if_dropped: u32Interface-level dropped packets (platform-specific)
Implementations§
Source§impl CaptureStats
impl CaptureStats
Sourcepub fn total_dropped(&self) -> u32
pub fn total_dropped(&self) -> u32
Get total packets dropped (both kernel and interface level)
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
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