pub struct StreamStats {Show 15 fields
pub stream_key: String,
pub started_at: Instant,
pub bytes_received: u64,
pub video_frames: u64,
pub audio_frames: u64,
pub keyframes: u64,
pub last_video_ts: u32,
pub last_audio_ts: u32,
pub video_codec: Option<String>,
pub audio_codec: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub framerate: Option<f64>,
pub audio_sample_rate: Option<u32>,
pub audio_channels: Option<u8>,
}Expand description
Stream-level statistics
Fields§
§stream_key: StringStream key
started_at: InstantStart time
bytes_received: u64Total bytes received
video_frames: u64Video frames received
audio_frames: u64Audio frames received
keyframes: u64Keyframes received
last_video_ts: u32Last video timestamp
last_audio_ts: u32Last audio timestamp
video_codec: Option<String>Video codec info
audio_codec: Option<String>Audio codec info
width: Option<u32>Video width
height: Option<u32>Video height
framerate: Option<f64>Video framerate
audio_sample_rate: Option<u32>Audio sample rate
audio_channels: Option<u8>Audio channels
Implementations§
Trait Implementations§
Source§impl Clone for StreamStats
impl Clone for StreamStats
Source§fn clone(&self) -> StreamStats
fn clone(&self) -> StreamStats
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 moreAuto Trait Implementations§
impl Freeze for StreamStats
impl RefUnwindSafe for StreamStats
impl Send for StreamStats
impl Sync for StreamStats
impl Unpin for StreamStats
impl UnwindSafe for StreamStats
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