pub struct MediaSection {
pub kind: MediaKind,
pub mid: String,
pub port: u16,
pub protocol: String,
pub formats: Vec<String>,
pub direction: Direction,
pub attributes: Vec<Attribute>,
pub connection: Option<String>,
}Fields§
§kind: MediaKind§mid: String§port: u16§protocol: String§formats: Vec<String>§direction: Direction§attributes: Vec<Attribute>§connection: Option<String>Implementations§
Source§impl MediaSection
impl MediaSection
pub fn new(kind: MediaKind, mid: impl Into<String>) -> Self
pub fn add_format(self, fmt: impl Into<String>) -> Self
pub fn attribute(self, key: impl Into<String>, value: Option<String>) -> Self
pub fn get_crypto_attributes(&self) -> Vec<CryptoAttribute>
pub fn get_extmap_id(&self, uri: &str) -> Option<u8>
pub fn apply_config(&mut self, config: &RtcConfiguration)
pub fn add_dtls_attributes(&mut self, fingerprint_hash: &str, setup: &str)
pub fn add_video_extmaps( &mut self, rid_id: Option<String>, repaired_rid_id: Option<String>, )
Trait Implementations§
Source§impl Clone for MediaSection
impl Clone for MediaSection
Source§fn clone(&self) -> MediaSection
fn clone(&self) -> MediaSection
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 MediaSection
impl Debug for MediaSection
Source§impl<'de> Deserialize<'de> for MediaSection
impl<'de> Deserialize<'de> for MediaSection
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 MediaSection
impl PartialEq for MediaSection
Source§impl Serialize for MediaSection
impl Serialize for MediaSection
impl Eq for MediaSection
impl StructuralPartialEq for MediaSection
Auto Trait Implementations§
impl Freeze for MediaSection
impl RefUnwindSafe for MediaSection
impl Send for MediaSection
impl Sync for MediaSection
impl Unpin for MediaSection
impl UnwindSafe for MediaSection
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