pub struct CameraView {
pub id: String,
pub label: String,
pub status: CameraStatus,
pub viewers: usize,
pub frames: u64,
pub idr_frames: u64,
pub bytes: u64,
pub reconnects: u64,
pub lagged_drops: u64,
pub decoded_frames: u64,
pub width: Option<u16>,
pub height: Option<u16>,
}Expand description
One camera, as GET /api/cameras reports it.
Fields§
§id: StringStable identifier.
label: StringDisplay name, falling back to the id.
status: CameraStatusCurrent lifecycle state.
viewers: usizeAttached consumers.
frames: u64Samples received since startup.
idr_frames: u64Random-access points received since startup.
bytes: u64Encoded bytes received since startup.
reconnects: u64Session restarts since startup.
lagged_drops: u64Samples dropped by lagging subscribers.
decoded_frames: u64Frames pushed through the decode lane.
width: Option<u16>Coded width, once known.
height: Option<u16>Coded height, once known.
Implementations§
Trait Implementations§
Source§impl Clone for CameraView
impl Clone for CameraView
Source§fn clone(&self) -> CameraView
fn clone(&self) -> CameraView
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 CameraView
impl Debug for CameraView
Auto Trait Implementations§
impl Freeze for CameraView
impl RefUnwindSafe for CameraView
impl Send for CameraView
impl Sync for CameraView
impl Unpin for CameraView
impl UnsafeUnpin for CameraView
impl UnwindSafe for CameraView
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