Skip to main content

PauseResumeBuilder

Struct PauseResumeBuilder 

Source
pub struct PauseResumeBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl PauseResumeBuilder

Source

pub fn new() -> Self

The defaults: a 500 ms round trip, a 5 s report interval, T_dither_max 0 (RFC 4585 section 3.4 for a point-to-point session).

Source

pub fn with_round_trip_time(self, round_trip_time: Duration) -> Self

The round trip to the peer assumed until one is measured, used for the hold-off period and the retransmission of requests (2 * RTT + T_dither_max). Once the RTCP session reports round trips (RtcpSessionEvent::RoundTripTime), the longest one measured is used instead (RFC 7728 section 6.2: “RTT is the longest round trip known to the RTP stream sender”).

Source

pub fn with_report_interval(self, report_interval: Duration) -> Self

The RTCP report interval: PAUSED is repeated once per interval, twice (section 8.2), a participant silent for five intervals has timed out (section 6.3.2), and a refused request is not repeated for two intervals (PAUSE) or one (RESUME).

Source

pub fn with_dither_max(self, dither_max: Duration) -> Self

T_dither_max (RFC 4585 section 3.4): 0 in a point-to-point session.

Source

pub fn with_repeats_in_regular_reports( self, repeat_in_regular_reports: bool, ) -> Self

How PAUSED is repeated (RFC 7728 sections 6.3, 6.4, 8.2). true, the default: the first PAUSED is written with a RepeatInRegularReports, so the RTCP session (Slot::RtcpSession) carries it again in the next Regular compound packets, “the next two regular RTCP reports” (section 8.2), and drops what is still owed when the stream leaves the state. false: the interceptor writes each repetition itself, one Self::with_report_interval apart, for a chain without the RTCP session.

Source

pub fn build(self) -> (PauseResumeInterceptor, PauseResumeHandle)

The interceptor and its handle.

Trait Implementations§

Source§

impl Clone for PauseResumeBuilder

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PauseResumeBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PauseResumeBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.