pub enum ResizeMode {
None,
CropAndScale,
}
Expand description
The means by which the resolution can be derived by the client.
§Note
The enumeration is not exhaustive and merely provides a list of known values.
Variants§
None
This resolution and frame rate is offered by the camera, its driver, or the OS.
§Note
The user agent MAY report this value to disguise concurrent use, but only when the camera is in use in another browsing context.
§Important
This value is a possible finger-printing surface.
CropAndScale
This resolution is downscaled and/or cropped from a higher camera resolution by the user agent, or its frame rate is decimated by the User Agent.
§Important
The media MUST NOT be upscaled, stretched or have fake data created that did not occur in the input source.
Implementations§
Source§impl ResizeMode
impl ResizeMode
Trait Implementations§
Source§impl Clone for ResizeMode
impl Clone for ResizeMode
Source§fn clone(&self) -> ResizeMode
fn clone(&self) -> ResizeMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResizeMode
impl Debug for ResizeMode
Source§impl Display for ResizeMode
impl Display for ResizeMode
Source§impl Hash for ResizeMode
impl Hash for ResizeMode
Source§impl PartialEq for ResizeMode
impl PartialEq for ResizeMode
impl Copy for ResizeMode
impl Eq for ResizeMode
impl StructuralPartialEq for ResizeMode
Auto Trait Implementations§
impl Freeze for ResizeMode
impl RefUnwindSafe for ResizeMode
impl Send for ResizeMode
impl Sync for ResizeMode
impl Unpin for ResizeMode
impl UnwindSafe for ResizeMode
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.