Enum nokhwa::js_camera::JSCameraFacingMode
source · pub enum JSCameraFacingMode {
Any,
Environment,
User,
Left,
Right,
}
Available on crate feature
input-jscam
only.Expand description
The Facing Mode of the camera
- Any: Make no particular choice.
- Environment: The camera that shows the user’s environment, such as the back camera of a smartphone
- User: The camera that shows the user, such as the front camera of a smartphone
- Left: The camera that shows the user but to their left, such as a camera that shows a user but to their left shoulder
- Right: The camera that shows the user but to their right, such as a camera that shows a user but to their right shoulder
See More:
facingMode
JS-WASM
This is exported as CameraFacingMode
.
Variants§
Trait Implementations§
source§impl Clone for JSCameraFacingMode
impl Clone for JSCameraFacingMode
source§fn clone(&self) -> JSCameraFacingMode
fn clone(&self) -> JSCameraFacingMode
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 JSCameraFacingMode
impl Debug for JSCameraFacingMode
source§impl Display for JSCameraFacingMode
impl Display for JSCameraFacingMode
source§impl Hash for JSCameraFacingMode
impl Hash for JSCameraFacingMode
source§impl Ord for JSCameraFacingMode
impl Ord for JSCameraFacingMode
source§fn cmp(&self, other: &JSCameraFacingMode) -> Ordering
fn cmp(&self, other: &JSCameraFacingMode) -> Ordering
1.21.0 · 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<JSCameraFacingMode> for JSCameraFacingMode
impl PartialEq<JSCameraFacingMode> for JSCameraFacingMode
source§fn eq(&self, other: &JSCameraFacingMode) -> bool
fn eq(&self, other: &JSCameraFacingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<JSCameraFacingMode> for JSCameraFacingMode
impl PartialOrd<JSCameraFacingMode> for JSCameraFacingMode
source§fn partial_cmp(&self, other: &JSCameraFacingMode) -> Option<Ordering>
fn partial_cmp(&self, other: &JSCameraFacingMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for JSCameraFacingMode
impl Eq for JSCameraFacingMode
impl StructuralEq for JSCameraFacingMode
impl StructuralPartialEq for JSCameraFacingMode
Auto Trait Implementations§
impl RefUnwindSafe for JSCameraFacingMode
impl Send for JSCameraFacingMode
impl Sync for JSCameraFacingMode
impl Unpin for JSCameraFacingMode
impl UnwindSafe for JSCameraFacingMode
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.