pub struct PerformanceStats {
pub total_samples: u64,
pub successful_samples: u64,
pub failed_samples: u64,
pub success_rate: f64,
pub avg_duration_ms: f64,
pub p95_duration_ms: f64,
pub messages_per_second: f64,
pub error_rate: f64,
pub uptime_seconds: f64,
}
Expand description
Aggregated performance statistics
Fields§
§total_samples: u64
Total number of samples
successful_samples: u64
Number of successful samples
failed_samples: u64
Number of failed samples
success_rate: f64
Success rate (0.0 to 1.0)
avg_duration_ms: f64
Average duration in milliseconds
p95_duration_ms: f64
95th percentile duration in milliseconds
messages_per_second: f64
Messages per second throughput
error_rate: f64
Error rate (0.0 to 1.0)
uptime_seconds: f64
Uptime in seconds
Trait Implementations§
Source§impl Clone for PerformanceStats
impl Clone for PerformanceStats
Source§fn clone(&self) -> PerformanceStats
fn clone(&self) -> PerformanceStats
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 moreSource§impl Debug for PerformanceStats
impl Debug for PerformanceStats
Source§impl Default for PerformanceStats
impl Default for PerformanceStats
Source§impl<'de> Deserialize<'de> for PerformanceStats
impl<'de> Deserialize<'de> for PerformanceStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PerformanceStats
impl RefUnwindSafe for PerformanceStats
impl Send for PerformanceStats
impl Sync for PerformanceStats
impl Unpin for PerformanceStats
impl UnwindSafe for PerformanceStats
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