Enum webrtc_media::track::setting::video::FacingMode
source · [−]pub enum FacingMode {
User,
Environment,
Left,
Right,
}
Expand description
The directions that the camera can face, as seen from the user’s perspective.
Important
Note that getConstraints
may not return exactly the same string for strings not in this enum.
This preserves the possibility of using a future version of WebIDL enum for this setting.
Specification
Variants
User
The source is facing toward the user (a self-view camera).
Environment
The source is facing away from the user (viewing the environment).
Left
The source is facing to the left of the user.
Right
The source is facing to the right of the user.
Trait Implementations
sourceimpl Clone for FacingMode
impl Clone for FacingMode
sourcefn clone(&self) -> FacingMode
fn clone(&self) -> FacingMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FacingMode
impl Debug for FacingMode
sourceimpl FromStr for FacingMode
impl FromStr for FacingMode
sourceimpl Ord for FacingMode
impl Ord for FacingMode
sourcefn cmp(&self, other: &FacingMode) -> Ordering
fn cmp(&self, other: &FacingMode) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FacingMode> for FacingMode
impl PartialEq<FacingMode> for FacingMode
sourcefn eq(&self, other: &FacingMode) -> bool
fn eq(&self, other: &FacingMode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<FacingMode> for FacingMode
impl PartialOrd<FacingMode> for FacingMode
sourcefn partial_cmp(&self, other: &FacingMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FacingMode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for FacingMode
impl Eq for FacingMode
impl StructuralEq for FacingMode
impl StructuralPartialEq for FacingMode
Auto Trait Implementations
impl RefUnwindSafe for FacingMode
impl Send for FacingMode
impl Sync for FacingMode
impl Unpin for FacingMode
impl UnwindSafe for FacingMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more