pub struct VisionStatus {
pub version: u16,
pub frames_consumed: u64,
pub live_inputs: u32,
pub error_frames: u64,
pub source_errors: Vec<SourceError>,
}Expand description
The engine’s work state.
Fields§
§version: u16§frames_consumed: u64Frames consumed from every input since the engine started.
live_inputs: u32Inputs that have delivered a frame since they were last (re)opened and have not since failed or gone silent.
error_frames: u64Captured buffers the driver flagged as corrupt and the engine dropped.
source_errors: Vec<SourceError>Cameras whose source is currently failing, with the reason.
Implementations§
Source§impl VisionStatus
impl VisionStatus
Sourcepub fn work_counter(&self) -> Option<u64>
pub fn work_counter(&self) -> Option<u64>
The work counter to judge the engine on: the frames consumed, but only
while an input is delivering. None (no verdict) otherwise.
Trait Implementations§
Source§impl Clone for VisionStatus
impl Clone for VisionStatus
Source§impl Debug for VisionStatus
impl Debug for VisionStatus
Source§impl Default for VisionStatus
impl Default for VisionStatus
Source§impl<'de> Deserialize<'de> for VisionStatus
impl<'de> Deserialize<'de> for VisionStatus
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
impl Eq for VisionStatus
Source§impl PartialEq for VisionStatus
impl PartialEq for VisionStatus
Source§impl Serialize for VisionStatus
impl Serialize for VisionStatus
impl StructuralPartialEq for VisionStatus
Auto Trait Implementations§
impl Freeze for VisionStatus
impl RefUnwindSafe for VisionStatus
impl Send for VisionStatus
impl Sync for VisionStatus
impl Unpin for VisionStatus
impl UnsafeUnpin for VisionStatus
impl UnwindSafe for VisionStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.