pub struct StreamStats {
pub subscriber_count: u32,
pub has_publisher: bool,
pub state: StreamState,
pub gop_frame_count: usize,
pub gop_size_bytes: usize,
}Expand description
Statistics for a stream
Fields§
§subscriber_count: u32Number of active subscribers
has_publisher: boolWhether the stream has an active publisher
state: StreamStateCurrent stream state
gop_frame_count: usizeNumber of frames in GOP buffer
gop_size_bytes: usizeSize of GOP buffer in bytes
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