#[non_exhaustive]pub struct SegmentDescriptor {
pub decode_time: Duration,
pub duration: Duration,
pub byte_range: Range<u64>,
pub segment_index: u32,
pub variant_index: usize,
}Expand description
Per-segment metadata exposed by segmented sources (HLS).
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.decode_time: DurationAbsolute decode time at the start of this segment (cumulative EXTINF over preceding segments).
duration: DurationSegment duration (EXTINF).
byte_range: Range<u64>Byte range in the source’s virtual stream.
segment_index: u32Segment index within the variant.
variant_index: usizeVariant the descriptor was resolved against.
Implementations§
Trait Implementations§
Source§impl Clone for SegmentDescriptor
impl Clone for SegmentDescriptor
Source§fn clone(&self) -> SegmentDescriptor
fn clone(&self) -> SegmentDescriptor
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 moreSource§impl Debug for SegmentDescriptor
impl Debug for SegmentDescriptor
Source§impl PartialEq for SegmentDescriptor
impl PartialEq for SegmentDescriptor
Source§fn eq(&self, other: &SegmentDescriptor) -> bool
fn eq(&self, other: &SegmentDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SegmentDescriptor
impl StructuralPartialEq for SegmentDescriptor
Auto Trait Implementations§
impl Freeze for SegmentDescriptor
impl RefUnwindSafe for SegmentDescriptor
impl Send for SegmentDescriptor
impl Sync for SegmentDescriptor
impl Unpin for SegmentDescriptor
impl UnsafeUnpin for SegmentDescriptor
impl UnwindSafe for SegmentDescriptor
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