pub struct ActionStats { /* private fields */ }Expand description
Action command dispatch statistics.
Implementations§
Source§impl ActionStats
impl ActionStats
Sourcepub fn record_send(&self)
pub fn record_send(&self)
Record a dispatched action.
Sourcepub fn record_ack(&self)
pub fn record_ack(&self)
Record a received acknowledgement.
Sourcepub fn record_failure(&self)
pub fn record_failure(&self)
Record a failure while dispatching or waiting for acknowledgements.
Sourcepub fn snapshot(&self) -> ActionSnapshot
pub fn snapshot(&self) -> ActionSnapshot
Snapshot the collected counters.
Trait Implementations§
Source§impl Debug for ActionStats
impl Debug for ActionStats
Auto Trait Implementations§
impl !Freeze for ActionStats
impl RefUnwindSafe for ActionStats
impl Send for ActionStats
impl Sync for ActionStats
impl Unpin for ActionStats
impl UnwindSafe for ActionStats
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