#[non_exhaustive]pub enum Resource {
Master,
Manifest,
#[non_exhaustive] Media {
kind: Kind,
rendition: String,
},
#[non_exhaustive] Init {
kind: Kind,
rendition: String,
hash: String,
},
#[non_exhaustive] Segment {
kind: Kind,
rendition: String,
generation: Option<String>,
sequence: u64,
},
#[non_exhaustive] SegmentAt {
kind: Kind,
rendition: String,
generation: Option<String>,
pts: u64,
},
}Expand description
A resource under a broadcast.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Master
master.m3u8: the HLS multivariant playlist.
Manifest
manifest.mpd: the DASH manifest.
#[non_exhaustive]Media
{kind}/{rendition}/media.m3u8: a rendition’s HLS media playlist.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Init
{kind}/{rendition}/init.{hash}.mp4: a rendition’s CMAF init segment.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]Segment
{kind}/{rendition}/seg/[{generation}.]{sequence}.m4s: a segment by its HLS number.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]SegmentAt
{kind}/{rendition}/seg/[{generation}.]t{pts}.m4s: the same bytes, addressed by the
DASH timeline pts ($Time$).
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations§
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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