Struct AtomicRoutingStatistics
pub struct AtomicRoutingStatistics { /* private fields */ }Expand description
Atomic statistics for message routing
Implementations§
§impl AtomicRoutingStatistics
impl AtomicRoutingStatistics
pub fn new() -> AtomicRoutingStatistics
pub fn new() -> AtomicRoutingStatistics
Create new atomic routing statistics
pub fn increment_routes(&self)
pub fn increment_routes(&self)
Increment active routes count
pub fn decrement_routes(&self)
pub fn decrement_routes(&self)
Decrement active routes count
pub fn increment_messages_routed(&self)
pub fn increment_messages_routed(&self)
Increment messages routed count
pub fn increment_routing_errors(&self)
pub fn increment_routing_errors(&self)
Increment routing errors count
pub fn increment_cache_hits(&self)
pub fn increment_cache_hits(&self)
Increment cache hits
pub fn increment_cache_misses(&self)
pub fn increment_cache_misses(&self)
Increment cache misses
pub fn snapshot(&self) -> RoutingStatisticsSnapshot
pub fn snapshot(&self) -> RoutingStatisticsSnapshot
Get current statistics snapshot
pub fn reset(&self)
pub fn reset(&self)
Reset all statistics
Trait Implementations§
§impl Debug for AtomicRoutingStatistics
impl Debug for AtomicRoutingStatistics
§impl Default for AtomicRoutingStatistics
impl Default for AtomicRoutingStatistics
§fn default() -> AtomicRoutingStatistics
fn default() -> AtomicRoutingStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for AtomicRoutingStatistics
impl RefUnwindSafe for AtomicRoutingStatistics
impl Send for AtomicRoutingStatistics
impl Sync for AtomicRoutingStatistics
impl Unpin for AtomicRoutingStatistics
impl UnwindSafe for AtomicRoutingStatistics
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