#[non_exhaustive]pub enum PresentationTime {
Delta(u32),
Absolute(u64),
}Expand description
The version-discriminated presentation-time field (DASH-IF Part 10 Table 6-2): the only field whose type and reference point differ by version.
version is derived from this enum: PresentationTime::Delta ⇒ version 0
(segment-relative), PresentationTime::Absolute ⇒ version 1
(representation-relative).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Delta(u32)
version 0: presentation_time_delta (u32), relative to the
segment’s earliest presentation time, in units of timescale.
Absolute(u64)
version 1: presentation_time (u64), relative to Period@start
(adjusted by @presentationTimeOffset), in units of timescale.
Implementations§
Trait Implementations§
Source§impl Clone for PresentationTime
impl Clone for PresentationTime
Source§fn clone(&self) -> PresentationTime
fn clone(&self) -> PresentationTime
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 moreimpl Copy for PresentationTime
Source§impl Debug for PresentationTime
impl Debug for PresentationTime
Source§impl Display for PresentationTime
impl Display for PresentationTime
impl Eq for PresentationTime
Source§impl Hash for PresentationTime
impl Hash for PresentationTime
Source§impl PartialEq for PresentationTime
impl PartialEq for PresentationTime
Source§fn eq(&self, other: &PresentationTime) -> bool
fn eq(&self, other: &PresentationTime) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PresentationTime
impl Serialize for PresentationTime
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PresentationTime
Auto Trait Implementations§
impl Freeze for PresentationTime
impl RefUnwindSafe for PresentationTime
impl Send for PresentationTime
impl Sync for PresentationTime
impl Unpin for PresentationTime
impl UnsafeUnpin for PresentationTime
impl UnwindSafe for PresentationTime
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