pub struct QueueStats { /* private fields */ }Expand description
Живая статистика очереди (собирается внутри очереди)
Implementations§
Source§impl QueueStats
impl QueueStats
pub fn new() -> Self
pub fn record_push(&self, current_size: usize)
pub fn record_pop(&self)
pub fn record_overflow(&self)
pub fn record_underflow(&self)
pub fn snapshot(&self) -> QueueStatsSnapshot
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for QueueStats
impl RefUnwindSafe for QueueStats
impl Send for QueueStats
impl Sync for QueueStats
impl Unpin for QueueStats
impl UnsafeUnpin for QueueStats
impl UnwindSafe for QueueStats
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