pub struct LifetimeStats {
pub total_input_bytes: u64,
pub total_output_bytes: u64,
pub total_encode_time_secs: f64,
pub total_jobs_completed: u64,
pub total_jobs_failed: u64,
pub last_updated: Option<String>,
}Fields§
§total_input_bytes: u64Total bytes of all source files ever encoded
total_output_bytes: u64Total bytes of all encoded outputs
total_encode_time_secs: f64Total encoding time in seconds
total_jobs_completed: u64Total number of completed jobs
total_jobs_failed: u64Total number of failed jobs
last_updated: Option<String>Last updated timestamp (ISO 8601)
Implementations§
Source§impl LifetimeStats
impl LifetimeStats
Sourcepub fn stats_path() -> Result<PathBuf>
pub fn stats_path() -> Result<PathBuf>
Get the path to the stats file
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Calculate compression ratio (input / output)
Sourcepub fn format_input_size(&self) -> String
pub fn format_input_size(&self) -> String
Format total input size
Sourcepub fn format_output_size(&self) -> String
pub fn format_output_size(&self) -> String
Format total output size
Sourcepub fn format_encode_time(&self) -> String
pub fn format_encode_time(&self) -> String
Format total encode time
Trait Implementations§
Source§impl Clone for LifetimeStats
impl Clone for LifetimeStats
Source§fn clone(&self) -> LifetimeStats
fn clone(&self) -> LifetimeStats
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 LifetimeStats
impl Debug for LifetimeStats
Source§impl Default for LifetimeStats
impl Default for LifetimeStats
Source§fn default() -> LifetimeStats
fn default() -> LifetimeStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LifetimeStats
impl<'de> Deserialize<'de> for LifetimeStats
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 LifetimeStats
impl RefUnwindSafe for LifetimeStats
impl Send for LifetimeStats
impl Sync for LifetimeStats
impl Unpin for LifetimeStats
impl UnsafeUnpin for LifetimeStats
impl UnwindSafe for LifetimeStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more