#[non_exhaustive]pub struct Timeline {
pub clock: Option<Clock>,
pub interval: Option<Duration>,
}Expand description
The broadcast’s timeline: the wall-clock time of PTS zero and how often a viewer can join.
Serialized under the catalog root’s sync key, and omitted when it holds nothing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.clock: Option<Clock>The broadcast’s one continuous clock, if the publisher exposes one.
wall is the wall-clock time of PTS zero in timescale units since the moq epoch
(2020-01-01); every track refers to this mapping after timescale conversion. See
Clock.
interval: Option<Duration>The promise that every audio and video track starts a group at least this often outside a pause: the longest group (GOP) any of them publishes.
It is also the grid an HLS or DASH export numbers its segments on, so every rendition shares segment numbers, and it is fixed for the broadcast identity since that numbering depends on it. A broadcast without one is not HLS-renderable. Serialized as whole milliseconds, rounded up. Zero is no promise: encoding refuses it, and so does a reader.
Implementations§
Trait Implementations§
impl Copy for Timeline
Source§impl<'de> Deserialize<'de> for Timeline
impl<'de> Deserialize<'de> for Timeline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Timeline
impl StructuralPartialEq for Timeline
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
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
impl<T> CatalogExt for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.