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§fn clone(&self) -> CameraInfo
fn clone(&self) -> CameraInfo
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 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<CameraInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CameraInfo, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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