pub struct CaptureCounts {
pub records: u64,
pub dropped: u64,
pub errors: u64,
pub hep_records: u64,
pub hep_dropped: u64,
}Expand description
How the capture is faring, if one is running (§13).
Zero on every field is the ordinary state, because capture is off by default.
Fields§
§records: u64Records handed to the writer.
dropped: u64Records dropped because the writer was behind.
The channel to the writer is bounded and an overrun drops rather than blocking the driver (§13.2): blocking would put the filesystem in the retransmission path. A capture with a gap that says so is usable; a stack that stalled to avoid the gap is not.
errors: u64Writes that failed, after which the capture is disabled.
A full disk is the usual reason. Counted rather than only logged because a capture that is silently not happening is the same failure as a silent discard, one level up.
hep_records: u64Records sent to the configured HEP3 collector.
hep_dropped: u64HEP3 records rejected by encoding or the non-blocking collector socket.
A drop never disables the local pcapng capture or fails a call.
Trait Implementations§
Source§impl Clone for CaptureCounts
impl Clone for CaptureCounts
Source§fn clone(&self) -> CaptureCounts
fn clone(&self) -> CaptureCounts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CaptureCounts
impl Debug for CaptureCounts
Source§impl Default for CaptureCounts
impl Default for CaptureCounts
Source§fn default() -> CaptureCounts
fn default() -> CaptureCounts
Source§impl PartialEq for CaptureCounts
impl PartialEq for CaptureCounts
Source§fn eq(&self, other: &CaptureCounts) -> bool
fn eq(&self, other: &CaptureCounts) -> bool
self and other values to be equal, and is used by ==.impl Copy for CaptureCounts
impl Eq for CaptureCounts
impl StructuralPartialEq for CaptureCounts
Auto Trait Implementations§
impl Freeze for CaptureCounts
impl RefUnwindSafe for CaptureCounts
impl Send for CaptureCounts
impl Sync for CaptureCounts
impl Unpin for CaptureCounts
impl UnsafeUnpin for CaptureCounts
impl UnwindSafe for CaptureCounts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more