pub struct TokioClientConfig {
pub request_timeout: Duration,
pub blocking_timeout: Duration,
pub max_resource_retries: u32,
pub retry_backoff: Duration,
pub max_retry_backoff: Duration,
pub auth: Option<Credentials>,
}tokio only.Expand description
Tunables for TokioClient. Default gives sane values for a
well-behaved LL-HLS origin reachable over a real (or loopback) network.
Fields§
§request_timeout: DurationPer-request timeout for a plain (non-blocking) playlist GET, or a resource (init/part/segment) GET.
blocking_timeout: DurationPer-request timeout for a blocking Playlist Reload
(_HLS_msn/_HLS_part, RFC 8216bis §6.2.5.2) — must exceed the
origin’s own blocking hold time (e.g. multimux’s LlHlsOutput caps
at 5s) with headroom, since the origin is expected to hold the
response open until new content exists or its own cap elapses.
max_resource_retries: u32How many times a resource fetch is retried (capped exponential backoff) before the adapter gives up on that specific fetch and moves on (see the module docs’ “Error recovery” section). A playlist reload is never subject to this cap — it retries indefinitely.
retry_backoff: DurationInitial backoff between retry attempts; doubles per attempt up to
Self::max_retry_backoff.
max_retry_backoff: DurationCeiling the doubled Self::retry_backoff is capped at.
auth: Option<Credentials>Optional auth attached to every request (see the module docs).
Trait Implementations§
Source§impl Clone for TokioClientConfig
impl Clone for TokioClientConfig
Source§fn clone(&self) -> TokioClientConfig
fn clone(&self) -> TokioClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more