Struct medea_jason::DeviceVideoTrackConstraints[][src]

pub struct DeviceVideoTrackConstraints { /* fields omitted */ }

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]

impl Debug for DeviceVideoTrackConstraints[src]

impl Default for DeviceVideoTrackConstraints[src]

impl Eq for DeviceVideoTrackConstraints[src]

impl From<DeviceVideoTrackConstraints> for JsValue[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

impl IntoWasmAbi for DeviceVideoTrackConstraints[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl OptionFromWasmAbi for DeviceVideoTrackConstraints[src]

impl OptionIntoWasmAbi for DeviceVideoTrackConstraints[src]

impl PartialEq<DeviceVideoTrackConstraints> for DeviceVideoTrackConstraints[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

impl RefMutFromWasmAbi for DeviceVideoTrackConstraints[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, DeviceVideoTrackConstraints>

Same as RefFromWasmAbi::Anchor

impl StructuralEq for DeviceVideoTrackConstraints[src]

impl StructuralPartialEq for DeviceVideoTrackConstraints[src]

impl WasmDescribe for DeviceVideoTrackConstraints[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E> WrapTraced<E> for E[src]