pub struct RTPMap<'a> { /* private fields */ }Expand description
Mapping from an RTP payload type to an actual encoding.
Implementations§
Source§impl RTPMap<'_>
impl RTPMap<'_>
Sourcepub fn with_encoding_parameters<T>(self, params: T) -> Selfwhere
T: ToString,
pub fn with_encoding_parameters<T>(self, params: T) -> Selfwhere
T: ToString,
Set the encoding parameters.
Sourcepub fn payload_type(&self) -> u8
pub fn payload_type(&self) -> u8
Get the payload type.
Sourcepub fn encoding_name(&self) -> &str
pub fn encoding_name(&self) -> &str
Get name of the encoding.
Sourcepub fn clock_rate(&self) -> u32
pub fn clock_rate(&self) -> u32
Get the clock rate.
Sourcepub fn encoding_parameters(&self) -> Option<&str>
pub fn encoding_parameters(&self) -> Option<&str>
Get the encoding parameters (if specified).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RTPMap<'a>
impl<'a> RefUnwindSafe for RTPMap<'a>
impl<'a> Send for RTPMap<'a>
impl<'a> Sync for RTPMap<'a>
impl<'a> Unpin for RTPMap<'a>
impl<'a> UnwindSafe for RTPMap<'a>
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