pub struct CameraInfo {
pub ready: bool,
pub main: Option<StreamGeometry>,
}Expand description
The camera facts.
Fields§
§ready: boolThe video pipeline is publishing the main stream: its camera-state
report says streaming (stamped only once mediamtx holds the encoder’s
publisher on main) and was re-stamped within the live window. false
while the encoder is still starting, when the pipeline is stopped or
failed, and when the report is absent or stale, whatever the camera
source (a local camera or a network stream).
main: Option<StreamGeometry>The geometry the primary encoder (the main stream) runs at, or None
when the node has no config file or is a ground station (no onboard
camera).
Trait Implementations§
Source§impl Clone for CameraInfo
impl Clone for CameraInfo
Source§impl Debug for CameraInfo
impl Debug for CameraInfo
Source§impl<'de> Deserialize<'de> for CameraInfo
impl<'de> Deserialize<'de> for CameraInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CameraInfo
impl PartialEq for CameraInfo
Source§impl Serialize for CameraInfo
impl Serialize for CameraInfo
impl StructuralPartialEq for CameraInfo
Auto Trait Implementations§
impl Freeze for CameraInfo
impl RefUnwindSafe for CameraInfo
impl Send for CameraInfo
impl Sync for CameraInfo
impl Unpin for CameraInfo
impl UnsafeUnpin for CameraInfo
impl UnwindSafe for CameraInfo
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