pub enum SegmentAddressing {
Template {
init: String,
media: String,
start_number: u32,
presentation_time_offset: u64,
availability_time_offset: Option<f64>,
},
Base(SegmentBaseInfo),
}Expand description
How a representation addresses its segments in the MPD.
Variants§
Template
Live/VOD multi-file layout: SegmentTemplate + SegmentTimeline.
Fields
Base(SegmentBaseInfo)
On-demand single-file layout: SegmentBase with byte ranges.
File layout is [init][sidx?][media…] or [init][seg1][seg2]… with
explicit media ranges in SegmentBaseInfo::media_ranges.
Trait Implementations§
Source§impl Clone for SegmentAddressing
impl Clone for SegmentAddressing
Source§fn clone(&self) -> SegmentAddressing
fn clone(&self) -> SegmentAddressing
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 moreAuto Trait Implementations§
impl Freeze for SegmentAddressing
impl RefUnwindSafe for SegmentAddressing
impl Send for SegmentAddressing
impl Sync for SegmentAddressing
impl Unpin for SegmentAddressing
impl UnsafeUnpin for SegmentAddressing
impl UnwindSafe for SegmentAddressing
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