pub struct SessionStats {
pub bytes_received: u64,
pub bytes_sent: u64,
pub duration: Duration,
pub video_frames: u64,
pub audio_frames: u64,
pub keyframes: u64,
pub dropped_frames: u64,
pub bitrate: u64,
}Expand description
Session-level statistics
Fields§
§bytes_received: u64Total bytes received
bytes_sent: u64Total bytes sent
duration: DurationConnection duration
video_frames: u64Number of video frames received
audio_frames: u64Number of audio frames received
keyframes: u64Number of keyframes received
dropped_frames: u64Dropped frames count
bitrate: u64Current bitrate estimate (bits/sec)
Implementations§
Source§impl SessionStats
impl SessionStats
Sourcepub fn calculate_bitrate(&mut self)
pub fn calculate_bitrate(&mut self)
Calculate bitrate from bytes and duration
Trait Implementations§
Source§impl Clone for SessionStats
impl Clone for SessionStats
Source§fn clone(&self) -> SessionStats
fn clone(&self) -> SessionStats
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 SessionStats
impl Debug for SessionStats
Source§impl Default for SessionStats
impl Default for SessionStats
Source§fn default() -> SessionStats
fn default() -> SessionStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionStats
impl RefUnwindSafe for SessionStats
impl Send for SessionStats
impl Sync for SessionStats
impl Unpin for SessionStats
impl UnwindSafe for SessionStats
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