pub struct PerformanceStats {
pub total_captures: u64,
pub successful_captures: u64,
pub failed_captures: u64,
pub total_bytes_captured: u64,
pub total_bytes_encoded: u64,
pub total_capture_time: Duration,
pub total_encoding_time: Duration,
pub fastest_capture: Duration,
pub slowest_capture: Duration,
}Expand description
Performance statistics
Fields§
§total_captures: u64§successful_captures: u64§failed_captures: u64§total_bytes_captured: u64§total_bytes_encoded: u64§total_capture_time: Duration§total_encoding_time: Duration§fastest_capture: Duration§slowest_capture: DurationImplementations§
Source§impl PerformanceStats
impl PerformanceStats
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate as percentage
Sourcepub fn average_capture_time(&self) -> Duration
pub fn average_capture_time(&self) -> Duration
Get average capture time
Sourcepub fn average_compression_ratio(&self) -> f64
pub fn average_compression_ratio(&self) -> f64
Get average compression ratio
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§fn default() -> PerformanceStats
fn default() -> PerformanceStats
Returns the “default value” for a type. 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