[][src]Struct skyway_webrtc_gateway_api::media::Constraints

pub struct Constraints {
    pub video: bool,
    pub videoReceiveEnabled: Option<bool>,
    pub audio: bool,
    pub audioReceiveEnabled: Option<bool>,
    pub video_params: Option<MediaParams>,
    pub audio_params: Option<MediaParams>,
}

Parameters for MediaConnection

Fields

video: bool

Shows whether this connection sends video or not

videoReceiveEnabled: Option<bool>

Shows whether this connection receives video or not

audio: bool

Shows whether this connection sends audio or not

audioReceiveEnabled: Option<bool>

Shows whether this connection receives audio or not

video_params: Option<MediaParams>

Parameters for sending video

audio_params: Option<MediaParams>

Parameters for sending audio

Trait Implementations

impl Clone for Constraints[src]

impl Debug for Constraints[src]

impl<'de> Deserialize<'de> for Constraints[src]

impl PartialEq<Constraints> for Constraints[src]

impl Serialize for Constraints[src]

impl StructuralPartialEq for Constraints[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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.