#[non_exhaustive]pub enum Codec {
Opus,
PCMU,
PCMA,
G722,
CN,
AmrWb,
H264,
H266,
Vp8,
Vp9,
Tele,
}Expand description
Known codecs and RTP payload formats.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Opus
PCMU
PCMA
G722
CN
Comfort Noise payload, per RFC 3389.
AmrWb
H264
H266
H266/VVC.
Vp8
Vp9
Tele
Telephone events (DTMF) RTP payload, per RFC 4733.
Negotiated alongside audio on the same SDP m-line. See
CodecConfig::add_config for explicit
payload configuration, offer clock-rate preferences and fallbacks.
Targets libwebrtc-compatible DTMF, defaulting to events 0-16, not full
RFC 4733 event handling. Only 0-X SDP ranges are supported.
Frame mode uses Writer::telephone_event
and CodecExtra::Tele. For RTP mode, see
TelephoneEvent.
Implementations§
Trait Implementations§
impl Copy for Codec
Source§impl<'de> Deserialize<'de> for Codec
impl<'de> Deserialize<'de> for Codec
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
impl Eq for Codec
impl StructuralPartialEq for Codec
Auto Trait Implementations§
impl Forget for Codec
impl Freeze for Codec
impl Move for Codec
impl RefUnwindSafe for Codec
impl Send for Codec
impl Sync for Codec
impl Unpin for Codec
impl UnsafeUnpin for Codec
impl UnwindSafe for Codec
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