pub struct SegmentBaseInfo {
pub base_url: String,
pub init_range: (u64, u64),
pub index_range: Option<(u64, u64)>,
pub media_ranges: Vec<(u64, u64)>,
}Expand description
Byte-range addressing for a single-file on-demand representation.
Fields§
§base_url: StringRelative URL of the single media file (BaseURL).
init_range: (u64, u64)Inclusive byte range of the initialization segment (a-b).
index_range: Option<(u64, u64)>Inclusive byte range of the segment index (sidx), if present.
media_ranges: Vec<(u64, u64)>Inclusive byte ranges of each media segment, in order.
When non-empty, emitted as SegmentList/SegmentURL@mediaRange
(more precise than a single index for multi-fragment files).
Trait Implementations§
Source§impl Clone for SegmentBaseInfo
impl Clone for SegmentBaseInfo
Source§fn clone(&self) -> SegmentBaseInfo
fn clone(&self) -> SegmentBaseInfo
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 SegmentBaseInfo
impl RefUnwindSafe for SegmentBaseInfo
impl Send for SegmentBaseInfo
impl Sync for SegmentBaseInfo
impl Unpin for SegmentBaseInfo
impl UnsafeUnpin for SegmentBaseInfo
impl UnwindSafe for SegmentBaseInfo
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