Struct skyway_webrtc_gateway_api::media::Constraints
source · 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>,
pub metadata: Option<String>,
}
Expand description
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
metadata: Option<String>
metadata sent to a neighbour.
Trait Implementations
sourceimpl Clone for Constraints
impl Clone for Constraints
sourcefn clone(&self) -> Constraints
fn clone(&self) -> Constraints
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Constraints
impl Debug for Constraints
sourceimpl<'de> Deserialize<'de> for Constraints
impl<'de> Deserialize<'de> for Constraints
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Constraints> for Constraints
impl PartialEq<Constraints> for Constraints
sourcefn eq(&self, other: &Constraints) -> bool
fn eq(&self, other: &Constraints) -> bool
sourceimpl Serialize for Constraints
impl Serialize for Constraints
impl StructuralPartialEq for Constraints
Auto Trait Implementations
impl RefUnwindSafe for Constraints
impl Send for Constraints
impl Sync for Constraints
impl Unpin for Constraints
impl UnwindSafe for Constraints
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more