#[non_exhaustive]pub enum ResourceId {
Init,
Part {
msn: u64,
part: u64,
},
Segment {
msn: u64,
},
}Expand description
Identifies one fetchable resource: the initialisation segment, a Low-Latency
HLS partial segment (“part”, RFC 8216bis §4.4.4.9), or a whole media
segment. Used to correlate an Action::FetchResource with the matching
crate::client::HlsClient::on_resource call.
Part/Segment are keyed by Media Sequence Number (RFC 8216 §4.3.3.2) +
(for parts) the 0-based Part Index within that segment — stable identity
independent of the URI, since a delta/blocking reload can re-describe the
same resource with the same URI more than once.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Init
The Media Initialisation Section (EXT-X-MAP, RFC 8216bis §4.4.4.5).
Part
One partial segment (RFC 8216bis §4.4.4.9): msn’s Media Sequence
Number, part its 0-based Part Index.
Fields
Segment
One whole media segment (RFC 8216 §4.3.3, non-LL full-segment fallback — a segment whose parts were never individually fetched).
Trait Implementations§
Source§impl Clone for ResourceId
impl Clone for ResourceId
Source§fn clone(&self) -> ResourceId
fn clone(&self) -> ResourceId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ResourceId
Source§impl Debug for ResourceId
impl Debug for ResourceId
Source§impl<'de> Deserialize<'de> for ResourceId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ResourceId
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ResourceId
Source§impl Hash for ResourceId
impl Hash for ResourceId
Source§impl Ord for ResourceId
impl Ord for ResourceId
Source§fn cmp(&self, other: &ResourceId) -> Ordering
fn cmp(&self, other: &ResourceId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ResourceId
impl PartialEq for ResourceId
Source§impl PartialOrd for ResourceId
impl PartialOrd for ResourceId
Source§impl Serialize for ResourceId
Available on crate feature serde only.
impl Serialize for ResourceId
serde only.