struct PacketCounterRing {
head: AtomicUsize,
total: AtomicU32,
}Expand description
Ring buffer for packet statistics - tracks recent activity without overflow
Fields§
§head: AtomicUsizeWrite position (wraps automatically)
total: AtomicU32Total packets ever processed (uses wrapping arithmetic)
Implementations§
Auto Trait Implementations§
impl !Freeze for PacketCounterRing
impl RefUnwindSafe for PacketCounterRing
impl Send for PacketCounterRing
impl Sync for PacketCounterRing
impl Unpin for PacketCounterRing
impl UnwindSafe for PacketCounterRing
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