pub struct CommandEventCounts {
pub queued: usize,
pub executing: usize,
pub succeeded: usize,
pub failed: usize,
}Expand description
Aggregate counts of command lifecycle events.
Fields§
§queued: usizeNumber of queued events received.
executing: usizeNumber of executing events received.
succeeded: usizeNumber of succeeded events received.
failed: usizeNumber of failed events received.
Implementations§
Source§impl CommandEventCounts
impl CommandEventCounts
Sourcepub fn get_currently_queued(&self) -> Option<usize>
pub fn get_currently_queued(&self) -> Option<usize>
Estimated number of commands currently waiting in the queue.
- Returns
Noneif the subtraction overflows - For accuracy,
CommandEvents::startmust be called before any events occur
Sourcepub fn get_currently_executing(&self) -> Option<usize>
pub fn get_currently_executing(&self) -> Option<usize>
Estimated number of commands currently being executed.
- Returns
Noneif the subtraction overflows - For accuracy,
CommandEvents::startmust be called before any events occur
Trait Implementations§
Source§impl Debug for CommandEventCounts
impl Debug for CommandEventCounts
Source§impl Default for CommandEventCounts
impl Default for CommandEventCounts
Source§fn default() -> CommandEventCounts
fn default() -> CommandEventCounts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandEventCounts
impl RefUnwindSafe for CommandEventCounts
impl Send for CommandEventCounts
impl Sync for CommandEventCounts
impl Unpin for CommandEventCounts
impl UnsafeUnpin for CommandEventCounts
impl UnwindSafe for CommandEventCounts
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