pub struct ActorMetrics { /* private fields */ }Expand description
Per-actor metrics. Lightweight, lock-free counters.
Implementations§
Source§impl ActorMetrics
impl ActorMetrics
pub fn new() -> Self
pub fn inc_received(&self)
pub fn inc_sent(&self)
pub fn inc_recovery(&self)
pub fn inc_panic(&self)
pub fn messages_received(&self) -> u64
pub fn messages_sent(&self) -> u64
pub fn recoveries(&self) -> u64
pub fn panics(&self) -> u64
Trait Implementations§
Source§impl Debug for ActorMetrics
impl Debug for ActorMetrics
Auto Trait Implementations§
impl !Freeze for ActorMetrics
impl RefUnwindSafe for ActorMetrics
impl Send for ActorMetrics
impl Sync for ActorMetrics
impl Unpin for ActorMetrics
impl UnsafeUnpin for ActorMetrics
impl UnwindSafe for ActorMetrics
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