pub struct QueueStats {
pub total_items: usize,
pub total_bytes: usize,
pub max_bytes: usize,
pub depth_critical: usize,
pub depth_high: usize,
pub depth_normal: usize,
pub depth_low: usize,
pub depth_bulk: usize,
pub aging_promotions: usize,
}Expand description
Queue statistics
Fields§
§total_items: usizeTotal items in queue
total_bytes: usizeTotal bytes in queue
max_bytes: usizeMaximum bytes allowed
depth_critical: usizeItems in P1 Critical queue
depth_high: usizeItems in P2 High queue
depth_normal: usizeItems in P3 Normal queue
depth_low: usizeItems in P4 Low queue
depth_bulk: usizeItems in P5 Bulk queue
aging_promotions: usizeNumber of aging promotions
Implementations§
Source§impl QueueStats
impl QueueStats
Sourcepub fn utilization(&self) -> f64
pub fn utilization(&self) -> f64
Get utilization percentage (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for QueueStats
impl Clone for QueueStats
Source§fn clone(&self) -> QueueStats
fn clone(&self) -> QueueStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueueStats
impl Debug for QueueStats
impl Copy for QueueStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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