Struct PerformanceMonitor
pub struct PerformanceMonitor { /* private fields */ }Expand description
Performance monitor for communication components
Implementations§
§impl PerformanceMonitor
impl PerformanceMonitor
pub fn new() -> PerformanceMonitor
pub fn new() -> PerformanceMonitor
Create a new performance monitor
pub fn record_message(&self, latency: Duration)
pub fn record_message(&self, latency: Duration)
Record message processing with latency
pub fn statistics(&self) -> PerformanceStatistics
pub fn statistics(&self) -> PerformanceStatistics
Get current statistics
pub fn reset(&self)
pub fn reset(&self)
Reset all statistics
Auto Trait Implementations§
impl !Freeze for PerformanceMonitor
impl RefUnwindSafe for PerformanceMonitor
impl Send for PerformanceMonitor
impl Sync for PerformanceMonitor
impl Unpin for PerformanceMonitor
impl UnwindSafe for PerformanceMonitor
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