Struct SystemStatistics
pub struct SystemStatistics {
pub messages_processed: u64,
pub errors_encountered: u64,
pub memory_usage_bytes: u64,
pub thread_utilization_percent: f64,
pub error_rate_percent: f64,
}Expand description
Performance statistics
Fields§
§messages_processed: u64Number of messages processed
errors_encountered: u64Number of errors encountered
memory_usage_bytes: u64Memory usage in bytes
thread_utilization_percent: f64Thread utilization percentage
error_rate_percent: f64Error rate percentage
Implementations§
§impl SystemStatistics
impl SystemStatistics
pub fn calculate_error_rate(&mut self)
pub fn calculate_error_rate(&mut self)
Calculate error rate percentage
pub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Check if system is healthy based on statistics
pub fn health_status(&self) -> SystemHealth
pub fn health_status(&self) -> SystemHealth
Get health status based on statistics
Trait Implementations§
§impl Clone for SystemStatistics
impl Clone for SystemStatistics
§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 more§impl Debug for SystemStatistics
impl Debug for SystemStatistics
§impl Default for SystemStatistics
impl Default for SystemStatistics
§fn default() -> SystemStatistics
fn default() -> SystemStatistics
Returns the “default value” for a type. Read more
Auto 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