pub struct SystemStatistics {
pub messages_processed: u64,
pub errors_encountered: u64,
pub average_processing_time: Duration,
pub error_rate_percent: f64,
pub memory_usage_bytes: u64,
pub thread_utilization_percent: u64,
}Expand description
System performance statistics
Fields§
§messages_processed: u64Total messages processed
errors_encountered: u64Total errors encountered
average_processing_time: DurationAverage processing time per message
error_rate_percent: f64Error rate as percentage
memory_usage_bytes: u64Current memory usage in bytes
thread_utilization_percent: u64Thread utilization percentage
Implementations§
Source§impl SystemStatistics
impl SystemStatistics
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if system is healthy based on performance metrics
Sourcepub fn health_status(&self) -> SystemHealth
pub fn health_status(&self) -> SystemHealth
Get system health status
Trait Implementations§
Source§impl Clone for SystemStatistics
impl Clone for SystemStatistics
Source§fn clone(&self) -> SystemStatistics
fn clone(&self) -> SystemStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SystemStatistics
impl RefUnwindSafe for SystemStatistics
impl Send for SystemStatistics
impl Sync for SystemStatistics
impl Unpin for SystemStatistics
impl UnwindSafe for SystemStatistics
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