pub enum G711Codec {
Pcmu,
Pcma,
}Expand description
The G.711 codec negotiated for a stream.
Variants§
Implementations§
Source§impl G711Codec
impl G711Codec
Sourcepub fn payload_type(self) -> u8
pub fn payload_type(self) -> u8
The static RTP/AVP payload type number (0 = PCMU, 8 = PCMA).
Sourcepub fn rtpmap_name(self) -> &'static str
pub fn rtpmap_name(self) -> &'static str
The a=rtpmap encoding name (PCMU / PCMA).
Sourcepub fn from_payload_type(pt: u8) -> Option<Self>
pub fn from_payload_type(pt: u8) -> Option<Self>
Map a static payload-type number to a G.711 codec, if it is one.
Trait Implementations§
impl Copy for G711Codec
impl Eq for G711Codec
impl StructuralPartialEq for G711Codec
Auto Trait Implementations§
impl Freeze for G711Codec
impl RefUnwindSafe for G711Codec
impl Send for G711Codec
impl Sync for G711Codec
impl Unpin for G711Codec
impl UnsafeUnpin for G711Codec
impl UnwindSafe for G711Codec
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.