#[repr(i32)]pub enum GrabStrategy {
OneByOne = 0,
LatestImageOnly = 1,
LatestImages = 2,
UpcomingImage = 3,
}Expand description
Buffer handling strategy used while grabbing.
Variants§
OneByOne = 0
Deliver every image in order.
LatestImageOnly = 1
Keep only the most recent image.
LatestImages = 2
Keep a rolling set of recent images.
UpcomingImage = 3
Wait for the next image that arrives after the call.
Trait Implementations§
Source§impl Clone for GrabStrategy
impl Clone for GrabStrategy
Source§fn clone(&self) -> GrabStrategy
fn clone(&self) -> GrabStrategy
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 moreSource§impl Debug for GrabStrategy
impl Debug for GrabStrategy
Source§impl PartialEq for GrabStrategy
impl PartialEq for GrabStrategy
impl Copy for GrabStrategy
impl Eq for GrabStrategy
impl StructuralPartialEq for GrabStrategy
Auto Trait Implementations§
impl Freeze for GrabStrategy
impl RefUnwindSafe for GrabStrategy
impl Send for GrabStrategy
impl Sync for GrabStrategy
impl Unpin for GrabStrategy
impl UnsafeUnpin for GrabStrategy
impl UnwindSafe for GrabStrategy
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