#[non_exhaustive]pub enum VideoCadence {
EveryFrame,
FrameRate(usize),
TimeIntervalSeconds(f64),
}Available on crate feature
recognize_text only.Expand description
Cadence override for VideoProcessor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EveryFrame
Let Vision process every frame.
FrameRate(usize)
Sample the video at the given frame rate.
TimeIntervalSeconds(f64)
Sample the video at the given time interval, in seconds.
Trait Implementations§
Source§impl Clone for VideoCadence
impl Clone for VideoCadence
Source§fn clone(&self) -> VideoCadence
fn clone(&self) -> VideoCadence
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 VideoCadence
impl Debug for VideoCadence
Source§impl PartialEq for VideoCadence
impl PartialEq for VideoCadence
Source§fn eq(&self, other: &VideoCadence) -> bool
fn eq(&self, other: &VideoCadence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VideoCadence
impl StructuralPartialEq for VideoCadence
Auto Trait Implementations§
impl Freeze for VideoCadence
impl RefUnwindSafe for VideoCadence
impl Send for VideoCadence
impl Sync for VideoCadence
impl Unpin for VideoCadence
impl UnsafeUnpin for VideoCadence
impl UnwindSafe for VideoCadence
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