struct DirectionCounters {
objects_seen: AtomicU64,
bytes_shaped: AtomicU64,
objects_expired: AtomicU64,
streams_reset_by_shaping: AtomicU64,
streams_with_mixed_classes: AtomicU64,
}Expand description
One leg’s session totals — the storage behind one DirectionStats.
Fields§
§objects_seen: AtomicU64§bytes_shaped: AtomicU64§objects_expired: AtomicU64§streams_reset_by_shaping: AtomicU64§streams_with_mixed_classes: AtomicU64Implementations§
Source§impl DirectionCounters
impl DirectionCounters
Sourcefn snapshot(&self) -> DirectionStats
fn snapshot(&self) -> DirectionStats
Read this leg.
Sourcefn reset(&self)
fn reset(&self)
Zero every counter. ClassCounters::reset states the terms.
Auto Trait Implementations§
impl !Freeze for DirectionCounters
impl RefUnwindSafe for DirectionCounters
impl Send for DirectionCounters
impl Sync for DirectionCounters
impl Unpin for DirectionCounters
impl UnsafeUnpin for DirectionCounters
impl UnwindSafe for DirectionCounters
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