Skip to main content

SmoothConfig

Struct SmoothConfig 

Source
#[non_exhaustive]
pub struct SmoothConfig { pub live_join_fragments: usize, pub max_fragment_failures: u32, pub max_manifest_failures: u32, pub max_refresh_misses: u32, pub backoff_ms: Vec<u64>, pub backoff_cap_ms: u64, pub jitter_seed: u64, pub refresh_min_us: u64, pub refresh_max_us: u64, pub video_quality: QualitySelector, }
Expand description

Engine tunables: start from SmoothConfig::default and set what differs with the with_* setters.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§live_join_fragments: usize

Live join point, in fragments behind the newest.

§max_fragment_failures: u32

Consecutive failures of one fragment before it is skipped (live) or the session ends (static); default 5.

§max_manifest_failures: u32

Consecutive manifest failures before the session ends; default 5.

§max_refresh_misses: u32

Consecutive refreshes lacking a stream before that stream is abandoned; default 5.

§backoff_ms: Vec<u64>

Retry delays by attempt, in milliseconds.

§backoff_cap_ms: u64

Retry delay past the end of Self::backoff_ms, in milliseconds.

§jitter_seed: u64

Seed of the retry jitter (broadcast_common::backoff::RetrySchedule): the first retry of a fragment or manifest waits exactly its step, every later one a term of [5/6, 1.0) of its step drawn from this seed, so a fleet of clients that fail together does not retry in lockstep. The engine reads no clock and no RNG, so a host gives each client its own entropy; two clients with the same seed retry identically (which is what makes a replay reproducible).

§refresh_min_us: u64

Lower clamp of the live refresh wait, in microseconds.

§refresh_max_us: u64

Upper clamp of the live refresh wait, in microseconds.

§video_quality: QualitySelector

Video quality choice.

Implementations§

Source§

impl SmoothConfig

Source

pub fn with_live_join_fragments(self, live_join_fragments: usize) -> Self

Source

pub fn with_max_fragment_failures(self, max_fragment_failures: u32) -> Self

Source

pub fn with_max_manifest_failures(self, max_manifest_failures: u32) -> Self

Source

pub fn with_max_refresh_misses(self, max_refresh_misses: u32) -> Self

Source

pub fn with_backoff_ms(self, backoff_ms: Vec<u64>) -> Self

Source

pub fn with_backoff_cap_ms(self, backoff_cap_ms: u64) -> Self

Source

pub fn with_jitter_seed(self, jitter_seed: u64) -> Self

Source

pub fn with_refresh_min_us(self, refresh_min_us: u64) -> Self

Source

pub fn with_refresh_max_us(self, refresh_max_us: u64) -> Self

Source

pub fn with_video_quality(self, video_quality: QualitySelector) -> Self

Trait Implementations§

Source§

impl Clone for SmoothConfig

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 SmoothConfig

Source§

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

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

impl Default for SmoothConfig

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> DescriptorObject for T
where T: Debug + Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
Source§

impl<T> ExtensionObject for T
where T: Debug + Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> TableObject for T
where T: Debug + Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Borrow as &dyn Any so the caller can downcast to the concrete type.
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more