#[non_exhaustive]pub struct ListSegment {
pub number: u64,
pub time: u64,
pub duration: u64,
pub reference: String,
pub range: Option<ByteRange>,
pub entry: SegmentUrl,
}Expand description
One listed segment with its timing.
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.number: u64Segment number.
time: u64Start on the timeline in ticks: i * @duration, or the timeline’s t.
duration: u64Duration in ticks.
reference: String@media reference (empty: the BaseURL itself).
range: Option<ByteRange>@mediaRange.
entry: SegmentUrlThe entry’s own SegmentURL.
Trait Implementations§
Source§impl Clone for ListSegment
impl Clone for ListSegment
Source§impl Debug for ListSegment
impl Debug for ListSegment
impl Eq for ListSegment
Source§impl PartialEq for ListSegment
impl PartialEq for ListSegment
impl StructuralPartialEq for ListSegment
Auto Trait Implementations§
impl Freeze for ListSegment
impl RefUnwindSafe for ListSegment
impl Send for ListSegment
impl Sync for ListSegment
impl Unpin for ListSegment
impl UnsafeUnpin for ListSegment
impl UnwindSafe for ListSegment
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