pub struct DeliveryJitter { /* private fields */ }Expand description
Burst-aware PDV estimator (sliding-minimum window, per-interval maximum,
forgetting histogram, stall max-hold, RFC 3550 J).
Implementations§
Source§impl DeliveryJitter
impl DeliveryJitter
Sourcepub fn new(cfg: JitterConfig) -> Result<Self, Error>
pub fn new(cfg: JitterConfig) -> Result<Self, Error>
Sourcepub fn on_chunk(
&mut self,
arrival: Duration,
media: Clock27,
_bytes: u32,
) -> SampleOutcome
pub fn on_chunk( &mut self, arrival: Duration, media: Clock27, _bytes: u32, ) -> SampleOutcome
Feed one media-time-carrying chunk. media is the raw (wrapped)
27 MHz media time (the PCR; or the media end in PCR-less mode), unrolled
here with clock33::pcr_signed_distance. _bytes is reserved (the
estimator is time-based; the C-ABI mirror carries it).
Sourcepub fn estimate(&self) -> JitterEstimate
pub fn estimate(&self) -> JitterEstimate
Current outputs (stall peak evaluated at the latest arrival).
Sourcepub fn stall_peak_at(&self, now: Duration) -> Duration
pub fn stall_peak_at(&self, now: Duration) -> Duration
Decayed stall-memory value at now.
Sourcepub fn window_overflows(&self) -> u32
pub fn window_overflows(&self) -> u32
Entries dropped by the minimum-window cap.
Sourcepub fn reset_baseline(&mut self)
pub fn reset_baseline(&mut self)
PCR discontinuity / new connection: drops the minimum window and the histogram, keeps the stall memory.
Sourcepub fn snapshot(&self) -> StallMemorySnapshot
pub fn snapshot(&self) -> StallMemorySnapshot
Stall memory for session persistence, aged to the latest arrival.
Sourcepub fn restore(&mut self, m: StallMemorySnapshot)
pub fn restore(&mut self, m: StallMemorySnapshot)
Install a stall memory (see StallMemorySnapshot for aging).
Trait Implementations§
Source§impl Clone for DeliveryJitter
impl Clone for DeliveryJitter
Auto Trait Implementations§
impl Forget for DeliveryJitter
impl Freeze for DeliveryJitter
impl Move for DeliveryJitter
impl RefUnwindSafe for DeliveryJitter
impl Send for DeliveryJitter
impl Sync for DeliveryJitter
impl Unpin for DeliveryJitter
impl UnsafeUnpin for DeliveryJitter
impl UnwindSafe for DeliveryJitter
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