Struct medea_jason::DeviceVideoTrackConstraints [−][src]
Constraints applicable to video tracks that are sourced from some media device.
Implementations
impl DeviceVideoTrackConstraints
[src]
#[must_use]pub fn satisfies(&self, track: &MediaStreamTrack) -> bool
[src]
Checks if provided MediaStreamTrack satisfies
DeviceVideoTrackConstraints
contained.
pub fn merge(&mut self, another: DeviceVideoTrackConstraints)
[src]
Merges this DeviceVideoTrackConstraints
with another
one , meaning
that if some constraint is not set on this one, then it will be applied
from another
.
#[must_use]pub fn required(&self) -> bool
[src]
Returns importance of this DeviceVideoTrackConstraints
.
If this DeviceVideoTrackConstraints
is important then without this
DeviceVideoTrackConstraints
call session can’t be started.
impl DeviceVideoTrackConstraints
[src]
Constraints applicable to video tracks that are sourced from screen-capture.
#[must_use]pub fn new() -> Self
[src]
Creates new DeviceVideoTrackConstraints
with none constraints
configured.
pub fn device_id(&mut self, device_id: String)
[src]
Sets exact deviceId constraint.
pub fn exact_facing_mode(&mut self, facing_mode: FacingMode)
[src]
Sets exact facingMode constraint.
pub fn ideal_facing_mode(&mut self, facing_mode: FacingMode)
[src]
Sets ideal facingMode constraint.
pub fn exact_height(&mut self, height: u32)
[src]
Sets exact height
constraint.
pub fn ideal_height(&mut self, height: u32)
[src]
Sets ideal height
constraint.
pub fn height_in_range(&mut self, min: u32, max: u32)
[src]
Sets range of height
constraint.
pub fn exact_width(&mut self, width: u32)
[src]
Sets exact width
constraint.
pub fn ideal_width(&mut self, width: u32)
[src]
Sets ideal width
constraint.
pub fn width_in_range(&mut self, min: u32, max: u32)
[src]
Sets range of width
constraint.
Trait Implementations
impl Clone for DeviceVideoTrackConstraints
[src]
fn clone(&self) -> DeviceVideoTrackConstraints
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DeviceVideoTrackConstraints
[src]
impl Default for DeviceVideoTrackConstraints
[src]
impl Eq for DeviceVideoTrackConstraints
[src]
impl From<DeviceVideoTrackConstraints> for JsValue
[src]
fn from(value: DeviceVideoTrackConstraints) -> Self
[src]
impl FromWasmAbi for DeviceVideoTrackConstraints
[src]
type Abi = u32
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
unsafe fn from_abi(js: u32) -> Self
[src]
impl IntoWasmAbi for DeviceVideoTrackConstraints
[src]
type Abi = u32
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self) -> u32
[src]
impl OptionFromWasmAbi for DeviceVideoTrackConstraints
[src]
impl OptionIntoWasmAbi for DeviceVideoTrackConstraints
[src]
impl PartialEq<DeviceVideoTrackConstraints> for DeviceVideoTrackConstraints
[src]
fn eq(&self, other: &DeviceVideoTrackConstraints) -> bool
[src]
fn ne(&self, other: &DeviceVideoTrackConstraints) -> bool
[src]
impl RefFromWasmAbi for DeviceVideoTrackConstraints
[src]
type Abi = u32
The wasm ABI type references to Self
are recovered from.
type Anchor = Ref<'static, DeviceVideoTrackConstraints>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl RefMutFromWasmAbi for DeviceVideoTrackConstraints
[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, DeviceVideoTrackConstraints>
Same as RefFromWasmAbi::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl StructuralEq for DeviceVideoTrackConstraints
[src]
impl StructuralPartialEq for DeviceVideoTrackConstraints
[src]
impl WasmDescribe for DeviceVideoTrackConstraints
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceVideoTrackConstraints
impl Send for DeviceVideoTrackConstraints
impl Sync for DeviceVideoTrackConstraints
impl Unpin for DeviceVideoTrackConstraints
impl UnwindSafe for DeviceVideoTrackConstraints
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.