#[non_exhaustive]pub enum CaptureMode {
Put(i32, i32),
Fill,
Adjust,
Pinhole,
}
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.
Put(i32, i32)
Put the video frame at (x, y)
on the capture area
with original size ignoring capture size.
Fill
Fill the capture area with the entire video frame.
Same as object-fit: fill
CSS property.
Adjust
Resize the capture area to fit the entire video frame. This is the default mode.
Pinhole
Put and scale the video frame to cover the capture area matching centers.
Implementations§
Source§impl CaptureMode
impl CaptureMode
pub const fn put_top_left() -> Self
Trait Implementations§
Source§impl Clone for CaptureMode
impl Clone for CaptureMode
Source§fn clone(&self) -> CaptureMode
fn clone(&self) -> CaptureMode
Returns a copy 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 CaptureMode
impl Debug for CaptureMode
Source§impl Default for CaptureMode
impl Default for CaptureMode
Source§fn default() -> CaptureMode
fn default() -> CaptureMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for CaptureMode
impl PartialEq for CaptureMode
impl Copy for CaptureMode
impl Eq for CaptureMode
impl StructuralPartialEq for CaptureMode
Auto Trait Implementations§
impl Freeze for CaptureMode
impl RefUnwindSafe for CaptureMode
impl Send for CaptureMode
impl Sync for CaptureMode
impl Unpin for CaptureMode
impl UnwindSafe for CaptureMode
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