pub struct NtpTimestampBuilder { /* private fields */ }Expand description
Builder for NtpTimestampInterceptor.
Implementations§
Source§impl NtpTimestampBuilder
impl NtpTimestampBuilder
Sourcepub fn with_initial_window(self, window: Duration) -> Self
pub fn with_initial_window(self, window: Duration) -> Self
How long from a stream’s first packet every packet carries the timestamp.
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
How often, after the initial window, the packets of one frame carry it. Duration::ZERO
stamps every packet.
Sourcepub fn with_wall_clock(self, anchor: SystemInstant) -> Self
pub fn with_wall_clock(self, anchor: SystemInstant) -> Self
The wall-clock anchor the timestamps derive from: the one the RTCP session’s sender
reports use (RFC 6051 section 3.3). Default: the process-wide
SystemInstant::shared. Give one per peer connection for reproducible virtual-time
runs: two runs in one process otherwise map the same instants to NTP times as far apart
as the real time between them.
Sourcepub fn build(self) -> NtpTimestampInterceptor
pub fn build(self) -> NtpTimestampInterceptor
Build the interceptor.
Trait Implementations§
Source§impl Clone for NtpTimestampBuilder
impl Clone for NtpTimestampBuilder
Source§impl Debug for NtpTimestampBuilder
impl Debug for NtpTimestampBuilder
Auto Trait Implementations§
impl Forget for NtpTimestampBuilder
impl Freeze for NtpTimestampBuilder
impl Move for NtpTimestampBuilder
impl RefUnwindSafe for NtpTimestampBuilder
impl Send for NtpTimestampBuilder
impl Sync for NtpTimestampBuilder
impl Unpin for NtpTimestampBuilder
impl UnsafeUnpin for NtpTimestampBuilder
impl UnwindSafe for NtpTimestampBuilder
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