pub struct CaptureRecord {
pub received: u64,
pub dropped: u64,
pub if_dropped: u64,
pub stopped_early: u64,
}Expand description
What a capture reported about its own losses.
Fields§
§received: u64How many packets it handed over.
dropped: u64How many it dropped.
if_dropped: u64How many the interface dropped before it.
stopped_early: u64How many captures ended before they were told to.
Defaulted on read.
Trait Implementations§
Source§impl Clone for CaptureRecord
impl Clone for CaptureRecord
impl Copy for CaptureRecord
Source§impl Debug for CaptureRecord
impl Debug for CaptureRecord
Source§impl<'de> Deserialize<'de> for CaptureRecord
impl<'de> Deserialize<'de> for CaptureRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CaptureRecord
Source§impl From<&CaptureRecord> for CaptureCounts
impl From<&CaptureRecord> for CaptureCounts
Source§fn from(record: &CaptureRecord) -> Self
fn from(record: &CaptureRecord) -> Self
Converts to this type from the input type.
Source§impl From<CaptureCounts> for CaptureRecord
impl From<CaptureCounts> for CaptureRecord
Source§fn from(counts: CaptureCounts) -> Self
fn from(counts: CaptureCounts) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CaptureRecord
impl PartialEq for CaptureRecord
Source§impl Serialize for CaptureRecord
impl Serialize for CaptureRecord
impl StructuralPartialEq for CaptureRecord
Auto Trait Implementations§
impl Freeze for CaptureRecord
impl RefUnwindSafe for CaptureRecord
impl Send for CaptureRecord
impl Sync for CaptureRecord
impl Unpin for CaptureRecord
impl UnsafeUnpin for CaptureRecord
impl UnwindSafe for CaptureRecord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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