#[non_exhaustive]pub struct SegmentRef {
pub index: u64,
pub number: u64,
pub time_ticks: u64,
pub duration_ticks: u64,
pub timescale: u64,
pub start_us: i128,
pub duration_us: i128,
pub reference: String,
pub byte_range: Option<ByteRange>,
pub available_from_us: Option<i128>,
pub available_until_us: Option<i128>,
}Expand description
One Media Segment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: u64Zero-based position in the plan.
number: u64$Number$.
time_ticks: u64$Time$ value in ticks.
duration_ticks: u64Duration in ticks.
timescale: u64Ticks per second.
start_us: i128Start relative to the Period start, microseconds
((time - PTO) / timescale for a timeline).
duration_us: i128Duration in microseconds.
reference: StringThe URL reference to resolve against the BaseURL chain; empty means the BaseURL itself.
byte_range: Option<ByteRange>The byte range, when the segment is a part of a file.
available_from_us: Option<i128>Availability start (dynamic MPD).
available_until_us: Option<i128>Availability end (dynamic MPD with a time-shift buffer).
Trait Implementations§
Source§impl Clone for SegmentRef
impl Clone for SegmentRef
Source§impl Debug for SegmentRef
impl Debug for SegmentRef
impl Eq for SegmentRef
Source§impl PartialEq for SegmentRef
impl PartialEq for SegmentRef
impl StructuralPartialEq for SegmentRef
Auto Trait Implementations§
impl Forget for SegmentRef
impl Freeze for SegmentRef
impl RefUnwindSafe for SegmentRef
impl Send for SegmentRef
impl Sync for SegmentRef
impl Unpin for SegmentRef
impl UnsafeUnpin for SegmentRef
impl UnwindSafe for SegmentRef
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