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§
Source§impl Clone for Constraints
impl Clone for Constraints
Source§fn clone(&self) -> Constraints
fn clone(&self) -> Constraints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Constraints
impl Debug for Constraints
Source§impl<'de> Deserialize<'de> for Constraints
impl<'de> Deserialize<'de> for Constraints
Source§fn 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
Source§impl PartialEq for Constraints
impl PartialEq for Constraints
Source§impl Serialize for Constraints
impl Serialize for Constraints
impl StructuralPartialEq for Constraints
Auto Trait Implementations§
impl Freeze for Constraints
impl RefUnwindSafe for Constraints
impl Send for Constraints
impl Sync for Constraints
impl Unpin for Constraints
impl UnwindSafe for Constraints
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