pub struct ContinuityMonitor { /* private fields */ }Expand description
Continuity monitor for a stream of timecodes.
Implementations§
Source§impl ContinuityMonitor
impl ContinuityMonitor
Sourcepub fn feed(&mut self, tc: Timecode) -> ContinuityResult
pub fn feed(&mut self, tc: Timecode) -> ContinuityResult
Feed a timecode to the monitor and return the continuity result.
Sourcepub fn overlap_count(&self) -> u32
pub fn overlap_count(&self) -> u32
Get number of overlaps detected.
Sourcepub fn repeat_count(&self) -> u32
pub fn repeat_count(&self) -> u32
Get number of repeated timecodes.
Sourcepub fn frame_count(&self) -> u64
pub fn frame_count(&self) -> u64
Get total frames processed.
Sourcepub fn gaps(&self) -> &[TimecodegGap]
pub fn gaps(&self) -> &[TimecodegGap]
Get all recorded gaps and overlaps.
Sourcepub fn last_timecode(&self) -> Option<&Timecode>
pub fn last_timecode(&self) -> Option<&Timecode>
Get the last seen timecode.
Trait Implementations§
Source§impl Clone for ContinuityMonitor
impl Clone for ContinuityMonitor
Source§fn clone(&self) -> ContinuityMonitor
fn clone(&self) -> ContinuityMonitor
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 ContinuityMonitor
impl RefUnwindSafe for ContinuityMonitor
impl Send for ContinuityMonitor
impl Sync for ContinuityMonitor
impl Unpin for ContinuityMonitor
impl UnsafeUnpin for ContinuityMonitor
impl UnwindSafe for ContinuityMonitor
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