pub struct ClockRateHistory { /* private fields */ }Expand description
The clock rates one RTP stream has used, for the SSRC rule of RFC 7160 section 4.1: a different SSRC for each clock rate, and a BYE and a new SSRC when the stream switches back to a rate it already used.
Implementations§
Source§impl ClockRateHistory
impl ClockRateHistory
Sourcepub fn previous(&self) -> impl Iterator<Item = u32> + '_
pub fn previous(&self) -> impl Iterator<Item = u32> + '_
The other clock rates seen, most recent last: the ones whose mapping the next compound RTCP packet carries in further SR packets after the current rate’s (section 4.1).
Sourcepub fn switch_to(&mut self, clock_rate: u32) -> SsrcForClockRate
pub fn switch_to(&mut self, clock_rate: u32) -> SsrcForClockRate
Records that the next packet is sent with clock_rate and says what happens to the
SSRC. The first packet of a stream keeps the SSRC it was given.
Trait Implementations§
Source§impl Clone for ClockRateHistory
impl Clone for ClockRateHistory
Source§impl Debug for ClockRateHistory
impl Debug for ClockRateHistory
Source§impl Default for ClockRateHistory
impl Default for ClockRateHistory
impl Eq for ClockRateHistory
Source§impl PartialEq for ClockRateHistory
impl PartialEq for ClockRateHistory
impl StructuralPartialEq for ClockRateHistory
Auto Trait Implementations§
impl Forget for ClockRateHistory
impl Freeze for ClockRateHistory
impl Move for ClockRateHistory
impl RefUnwindSafe for ClockRateHistory
impl Send for ClockRateHistorywhere
RawVecInner: Send,
impl Sync for ClockRateHistorywhere
RawVecInner: Sync,
impl Unpin for ClockRateHistory
impl UnsafeUnpin for ClockRateHistory
impl UnwindSafe for ClockRateHistorywhere
RawVecInner: UnwindSafe,
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