pub struct TokioClientStats {
pub playlist_fetches: u64,
pub blocking_reloads: u64,
pub resource_fetches: u64,
pub preload_hint_resource_fetches: u64,
}Available on crate feature
tokio only.Expand description
Diagnostic counters for what TokioClient has actually done —
distinguishing “parsed an LL-HLS tag” from “acted on it”, the same bar
this crate’s own acceptance tests hold the adapter to (issue #717’s
“blocking-reload + preload-hint prefetch actually exercised” acceptance
item). Also useful to a real caller for observability.
Fields§
§playlist_fetches: u64Playlist GETs performed (blocking + non-blocking).
blocking_reloads: u64Of those, how many carried _HLS_msn/_HLS_part — a Blocking
Playlist Reload (RFC 8216bis §6.2.5.2).
resource_fetches: u64Resource (init/part/segment) GETs performed.
preload_hint_resource_fetches: u64Of those, how many were for the exact URL most recently named by the
playlist’s #EXT-X-PRELOAD-HINT (RFC 8216bis §4.4.5.3) — i.e.
fetched ahead of that resource’s own numbered (#EXT-X-PART)
appearance, not merely alongside it.
Trait Implementations§
Source§impl Clone for TokioClientStats
impl Clone for TokioClientStats
Source§fn clone(&self) -> TokioClientStats
fn clone(&self) -> TokioClientStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TokioClientStats
Source§impl Debug for TokioClientStats
impl Debug for TokioClientStats
Source§impl Default for TokioClientStats
impl Default for TokioClientStats
Source§fn default() -> TokioClientStats
fn default() -> TokioClientStats
Returns the “default value” for a type. Read more
impl Eq for TokioClientStats
Source§impl PartialEq for TokioClientStats
impl PartialEq for TokioClientStats
impl StructuralPartialEq for TokioClientStats
Auto Trait Implementations§
impl Freeze for TokioClientStats
impl RefUnwindSafe for TokioClientStats
impl Send for TokioClientStats
impl Sync for TokioClientStats
impl Unpin for TokioClientStats
impl UnsafeUnpin for TokioClientStats
impl UnwindSafe for TokioClientStats
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