pub struct LoopSnapshot {
pub driver: DriverStats,
pub accepted: u64,
pub rejected: u64,
pub closed: u64,
pub active: u64,
pub pool_allocated: u64,
pub pool_reused: u64,
pub pool_cached: u64,
pub timers: u64,
}Expand description
Counters of one loop, as last published by it (once per loop turn).
Fields§
§driver: DriverStatsThe loop’s driver counters (system calls and OS events).
accepted: u64Connections accepted (and kept).
rejected: u64Connections refused: over a cap, or the acceptor said no.
closed: u64Connections closed.
active: u64Connections open now.
pool_allocated: u64Buffers newly allocated by the loop’s pool.
pool_reused: u64Buffers reused by the loop’s pool.
pool_cached: u64Buffers cached in the loop’s pool now.
timers: u64Timers scheduled on the loop now (connections’ and endpoints’).
Trait Implementations§
Source§impl Clone for LoopSnapshot
impl Clone for LoopSnapshot
impl Copy for LoopSnapshot
Source§impl Debug for LoopSnapshot
impl Debug for LoopSnapshot
Source§impl Default for LoopSnapshot
impl Default for LoopSnapshot
impl Eq for LoopSnapshot
Source§impl PartialEq for LoopSnapshot
impl PartialEq for LoopSnapshot
impl StructuralPartialEq for LoopSnapshot
Auto Trait Implementations§
impl Forget for LoopSnapshot
impl Freeze for LoopSnapshot
impl Move for LoopSnapshot
impl RefUnwindSafe for LoopSnapshot
impl Send for LoopSnapshot
impl Sync for LoopSnapshot
impl Unpin for LoopSnapshot
impl UnsafeUnpin for LoopSnapshot
impl UnwindSafe for LoopSnapshot
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