#[repr(C)]pub enum CameraFacing {
Front = 0,
Back = 1,
External = 2,
}Expand description
Which physical camera to open.
Variants§
Front = 0
User-facing (selfie) camera.
Back = 1
World-facing (rear) camera.
External = 2
An external / USB camera (desktop webcams report here).
Trait Implementations§
Source§impl Clone for CameraFacing
impl Clone for CameraFacing
Source§fn clone(&self) -> CameraFacing
fn clone(&self) -> CameraFacing
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 CameraFacing
impl Debug for CameraFacing
Source§impl Hash for CameraFacing
impl Hash for CameraFacing
Source§impl Ord for CameraFacing
impl Ord for CameraFacing
Source§fn cmp(&self, other: &CameraFacing) -> Ordering
fn cmp(&self, other: &CameraFacing) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CameraFacing
impl PartialEq for CameraFacing
Source§fn eq(&self, other: &CameraFacing) -> bool
fn eq(&self, other: &CameraFacing) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CameraFacing
impl PartialOrd for CameraFacing
impl Copy for CameraFacing
impl Eq for CameraFacing
impl StructuralPartialEq for CameraFacing
Auto Trait Implementations§
impl Freeze for CameraFacing
impl RefUnwindSafe for CameraFacing
impl Send for CameraFacing
impl Sync for CameraFacing
impl Unpin for CameraFacing
impl UnsafeUnpin for CameraFacing
impl UnwindSafe for CameraFacing
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