pub enum JSCameraSupportedCapabilities {
DeviceID,
GroupID,
AspectRatio,
FacingMode,
FrameRate,
Height,
Width,
ResizeMode,
}
Available on crate feature
input-jscam
only.Expand description
The enum describing the possible constraints for video in the browser.
DeviceID
: The ID of the deviceGroupID
: The ID of the group that the device is inAspectRatio
: The Aspect Ratio of the final streamFacingMode
: What direction the camera is facing. This is more common on mobile. SeeJSCameraFacingMode
FrameRate
: The Frame Rate of the final streamHeight
: The height of the final stream in pixelsWidth
: The width of the final stream in pixelsResizeMode
: Whether the client can crop and/or scale the stream to match the resolution (width, height). SeeJSCameraResizeMode
See More:MediaTrackConstraints
Capabilities, constraints, and settings
JS-WASM
This is exported as CameraSupportedCapabilities
.
Variants§
Trait Implementations§
source§impl Clone for JSCameraSupportedCapabilities
impl Clone for JSCameraSupportedCapabilities
source§fn clone(&self) -> JSCameraSupportedCapabilities
fn clone(&self) -> JSCameraSupportedCapabilities
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 Hash for JSCameraSupportedCapabilities
impl Hash for JSCameraSupportedCapabilities
source§impl Ord for JSCameraSupportedCapabilities
impl Ord for JSCameraSupportedCapabilities
source§fn cmp(&self, other: &JSCameraSupportedCapabilities) -> Ordering
fn cmp(&self, other: &JSCameraSupportedCapabilities) -> 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<JSCameraSupportedCapabilities> for JSCameraSupportedCapabilities
impl PartialEq<JSCameraSupportedCapabilities> for JSCameraSupportedCapabilities
source§fn eq(&self, other: &JSCameraSupportedCapabilities) -> bool
fn eq(&self, other: &JSCameraSupportedCapabilities) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<JSCameraSupportedCapabilities> for JSCameraSupportedCapabilities
impl PartialOrd<JSCameraSupportedCapabilities> for JSCameraSupportedCapabilities
source§fn partial_cmp(&self, other: &JSCameraSupportedCapabilities) -> Option<Ordering>
fn partial_cmp(&self, other: &JSCameraSupportedCapabilities) -> 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 JSCameraSupportedCapabilities
impl Eq for JSCameraSupportedCapabilities
impl StructuralEq for JSCameraSupportedCapabilities
impl StructuralPartialEq for JSCameraSupportedCapabilities
Auto Trait Implementations§
impl RefUnwindSafe for JSCameraSupportedCapabilities
impl Send for JSCameraSupportedCapabilities
impl Sync for JSCameraSupportedCapabilities
impl Unpin for JSCameraSupportedCapabilities
impl UnwindSafe for JSCameraSupportedCapabilities
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.