pub enum CodecMenu {
Full,
Pinned {
codec: AudioCodec,
dtmf: Option<DtmfSpec>,
},
}Expand description
Which audio codecs an SDP body advertises.
Variants§
Full
The full initial-offer menu: Opus (preferred, at
OPUS_DEFAULT_PT) then PCMU/PCMA, with telephone-event at
both clocks. Use for initial offers only.
Pinned
Exactly one codec (plus optionally one telephone-event entry)
— the shape of every answer and every post-negotiation re-offer.
Pinning re-offers to the negotiated codec is what keeps a
hold/resume or session-refresh re-INVITE from renegotiating the
codec out from under a live audio path.
Fields
§
codec: AudioCodecThe negotiated audio codec, echoed at its negotiated payload type.
Trait Implementations§
impl Copy for CodecMenu
impl Eq for CodecMenu
impl StructuralPartialEq for CodecMenu
Auto Trait Implementations§
impl Freeze for CodecMenu
impl RefUnwindSafe for CodecMenu
impl Send for CodecMenu
impl Sync for CodecMenu
impl Unpin for CodecMenu
impl UnsafeUnpin for CodecMenu
impl UnwindSafe for CodecMenu
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.