pub struct QueueStats {
pub total_pending: usize,
pub total_active: usize,
pub dead_letter_count: usize,
pub lanes: HashMap<String, LaneStatus>,
}Expand description
Queue statistics snapshot
Provides a point-in-time view of the queue state across all lanes.
§Fields
total_pending- Total number of commands waiting to be executed across all lanestotal_active- Total number of commands currently executing across all lanesdead_letter_count- Total number of permanently failed commands in the dead letter queuelanes- Per-lane status information (pending, active, min/max concurrency)
§Example
ⓘ
let stats = manager.stats().await?;
println!("Queue has {} pending and {} active commands",
stats.total_pending, stats.total_active);
for (lane_id, status) in &stats.lanes {
println!("{}: {} pending, {} active (max: {})",
lane_id, status.pending, status.active, status.max);
}Fields§
§total_pending: usize§total_active: usize§dead_letter_count: usize§lanes: HashMap<String, LaneStatus>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
Source§impl Default for QueueStats
impl Default for QueueStats
Source§fn default() -> QueueStats
fn default() -> QueueStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueueStats
impl<'de> Deserialize<'de> for QueueStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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