pub struct SessionMetrics {
pub total_watch_ms: u64,
pub unique_positions_watched: u64,
pub seek_count: u32,
pub buffer_events: u32,
pub buffer_time_ms: u64,
pub quality_changes: u32,
pub completion_pct: f32,
}Expand description
Aggregate metrics derived from a single ViewerSession.
Fields§
§total_watch_ms: u64Total milliseconds of content actually watched (sum of watch chunks).
unique_positions_watched: u64Number of unique 1-second positions watched (distinct content seconds).
seek_count: u32How many Seek events were recorded.
buffer_events: u32How many buffering interruptions occurred.
buffer_time_ms: u64Total stall time in milliseconds.
quality_changes: u32How many quality-level switches happened.
completion_pct: f32What fraction of the content was completed (0.0 – 100.0).
Trait Implementations§
Source§impl Clone for SessionMetrics
impl Clone for SessionMetrics
Source§fn clone(&self) -> SessionMetrics
fn clone(&self) -> SessionMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionMetrics
impl Debug for SessionMetrics
Source§impl PartialEq for SessionMetrics
impl PartialEq for SessionMetrics
Source§fn eq(&self, other: &SessionMetrics) -> bool
fn eq(&self, other: &SessionMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionMetrics
Auto Trait Implementations§
impl Freeze for SessionMetrics
impl RefUnwindSafe for SessionMetrics
impl Send for SessionMetrics
impl Sync for SessionMetrics
impl Unpin for SessionMetrics
impl UnsafeUnpin for SessionMetrics
impl UnwindSafe for SessionMetrics
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