pub struct DtmfSpec {
pub payload_type: u8,
pub clock_rate: u32,
}Expand description
One negotiated telephone-event entry: its payload type and clock.
The clock matters beyond the SDP line — RFC 4733 duration fields and
burst pacing count in ticks of this clock (160 per 20 ms at 8 kHz,
960 at 48 kHz), so it must be threaded into
crate::rtp::dtmf::DtmfBurstConfig.
Fields§
§payload_type: u8The negotiated dynamic payload type.
clock_rate: u32The event clock rate from the rtpmap (8000 classic, 48000 alongside Opus).
Trait Implementations§
impl Copy for DtmfSpec
impl Eq for DtmfSpec
impl StructuralPartialEq for DtmfSpec
Auto Trait Implementations§
impl Freeze for DtmfSpec
impl RefUnwindSafe for DtmfSpec
impl Send for DtmfSpec
impl Sync for DtmfSpec
impl Unpin for DtmfSpec
impl UnsafeUnpin for DtmfSpec
impl UnwindSafe for DtmfSpec
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.