pub struct Statistics {
pub total_links: usize,
pub total_duration: f64,
pub total_original_size: u64,
pub total_proxy_size: u64,
pub compression_ratio: f64,
pub space_saved: u64,
pub codec_distribution: HashMap<String, usize>,
pub scale_distribution: HashMap<String, usize>,
pub verified_count: usize,
pub unverified_count: usize,
}Expand description
Comprehensive link statistics.
Fields§
§total_links: usizeTotal number of links.
total_duration: f64Total duration of all media in seconds.
total_original_size: u64Total size of original files in bytes.
total_proxy_size: u64Total size of proxy files in bytes.
compression_ratio: f64Average compression ratio (proxy size / original size).
space_saved: u64Total space saved in bytes.
codec_distribution: HashMap<String, usize>Distribution of codecs used.
scale_distribution: HashMap<String, usize>Distribution of scale factors.
verified_count: usizeNumber of verified links.
unverified_count: usizeNumber of unverified links.
Implementations§
Source§impl Statistics
impl Statistics
Sourcepub fn most_used_codec(&self) -> Option<String>
pub fn most_used_codec(&self) -> Option<String>
Get the most used codec.
Sourcepub fn verification_percentage(&self) -> f64
pub fn verification_percentage(&self) -> f64
Get verification percentage.
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
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 Statistics
impl Debug for Statistics
Source§impl Default for Statistics
impl Default for Statistics
Source§fn default() -> Statistics
fn default() -> Statistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnsafeUnpin for Statistics
impl UnwindSafe for Statistics
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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