pub enum CodecType {
PCMU,
PCMA,
G722,
G729,
Opus,
TelephoneEvent,
}Variants§
Implementations§
Source§impl CodecType
impl CodecType
pub fn mime_type(&self) -> &str
pub fn rtpmap(&self) -> &str
pub fn fmtp(&self) -> Option<&str>
pub fn clock_rate(&self) -> u32
pub fn channels(&self) -> u16
pub fn payload_type(&self) -> u8
pub fn samplerate(&self) -> u32
pub fn is_audio(&self) -> bool
pub fn is_dynamic(&self) -> bool
Trait Implementations§
Source§impl Ord for CodecType
impl Ord for CodecType
Source§impl PartialOrd for CodecType
impl PartialOrd for CodecType
impl Copy for CodecType
impl Eq for CodecType
impl StructuralPartialEq for CodecType
Auto Trait Implementations§
impl Freeze for CodecType
impl RefUnwindSafe for CodecType
impl Send for CodecType
impl Sync for CodecType
impl Unpin for CodecType
impl UnwindSafe for CodecType
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