pub struct ScheduleEntry {
pub id: String,
pub kind: EntryKind,
pub planned_start: u64,
pub source_start_pts: u64,
pub codec_config: CodecConfigId,
}Expand description
One entry in the schedule: a source, its kind, and when it is planned to start on the shared channel timeline.
Fields§
§id: StringCaller-chosen identity for the source this entry plays (e.g. an asset id or URI) — opaque to this crate beyond equality/display.
kind: EntryKindWhat kind of content this entry is.
planned_start: u64The channel-timeline instant (caller’s clock unit — SCTE-35 cues use 90 kHz ticks, so that’s the natural choice) this entry is scheduled to start at.
source_start_pts: u64The PTS value the source’s own first presented sample carries, in the
same clock unit. Needed to compute the PTS-rebase offset at the
transition into this entry — see crate::transition.
codec_config: CodecConfigIdCodec-config identity, for discontinuity detection at the transition into this entry.
Trait Implementations§
Source§impl Clone for ScheduleEntry
impl Clone for ScheduleEntry
Source§fn clone(&self) -> ScheduleEntry
fn clone(&self) -> ScheduleEntry
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 ScheduleEntry
impl Debug for ScheduleEntry
Source§impl<'de> Deserialize<'de> for ScheduleEntry
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ScheduleEntry
Available on crate feature
serde only.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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScheduleEntry
Source§impl PartialEq for ScheduleEntry
impl PartialEq for ScheduleEntry
Source§impl Serialize for ScheduleEntry
Available on crate feature serde only.
impl Serialize for ScheduleEntry
Available on crate feature
serde only.impl StructuralPartialEq for ScheduleEntry
Auto Trait Implementations§
impl Freeze for ScheduleEntry
impl RefUnwindSafe for ScheduleEntry
impl Send for ScheduleEntry
impl Sync for ScheduleEntry
impl Unpin for ScheduleEntry
impl UnsafeUnpin for ScheduleEntry
impl UnwindSafe for ScheduleEntry
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