pub struct QueueStats {
pub current_size: usize,
pub max_size: usize,
pub utilization: f64,
pub backpressure_active: bool,
pub dropped_events: usize,
}Expand description
Queue statistics for monitoring and scaling decisions
Fields§
§current_size: usizeCurrent number of events in the queue
max_size: usizeMaximum capacity of the queue
utilization: f64Current utilization as a percentage (0.0 to 1.0)
backpressure_active: boolWhether backpressure is currently active
dropped_events: usizeTotal number of events dropped
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 moreAuto Trait Implementations§
impl Freeze for QueueStats
impl RefUnwindSafe for QueueStats
impl Send for QueueStats
impl Sync for QueueStats
impl Unpin 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> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter