pub struct RecStats {
pub total_sessions: u64,
pub total_commands: u64,
pub total_duration_secs: f64,
pub storage_bytes: u64,
pub tag_counts: Vec<TagCount>,
}Expand description
Aggregate recording statistics.
Fields§
§total_sessions: u64Total number of recorded sessions
total_commands: u64Total commands across all sessions
total_duration_secs: f64Total recording duration in seconds
storage_bytes: u64Total storage used in bytes
tag_counts: Vec<TagCount>Most-used tags, sorted by count descending
Implementations§
Source§impl RecStats
impl RecStats
Sourcepub fn average_session_length_secs(&self) -> f64
pub fn average_session_length_secs(&self) -> f64
Average session length in seconds.
Returns 0.0 if there are no sessions.
Sourcepub fn storage_human(&self) -> String
pub fn storage_human(&self) -> String
Format storage bytes as a human-readable string.
Examples: “512 B”, “1.2 KB”, “3.4 MB”, “5.6 GB”
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecStats
impl RefUnwindSafe for RecStats
impl Send for RecStats
impl Sync for RecStats
impl Unpin for RecStats
impl UnwindSafe for RecStats
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