pub struct TimedEvent {
pub id: Option<u32>,
pub kind: EventKind,
pub at: Option<MediaTime>,
pub duration: Option<MediaDuration>,
pub source: SourcePayload,
}Expand description
The canonical event passed between format adapters.
Fields§
§id: Option<u32>Event id (splice_event_id / emsg id).
kind: EventKindAbstract meaning.
at: Option<MediaTime>Media-timeline instant; None = immediate / determined by insertion point.
duration: Option<MediaDuration>Event duration, if known.
source: SourcePayloadLossless original.
Implementations§
Source§impl TimedEvent
impl TimedEvent
Sourcepub fn from_scte35(section: &SpliceInfoSection<'_>, raw: &[u8]) -> Result<Self>
pub fn from_scte35(section: &SpliceInfoSection<'_>, raw: &[u8]) -> Result<Self>
Build from a parsed SCTE-35 section, retaining raw verbatim.
Trait Implementations§
Source§impl Clone for TimedEvent
impl Clone for TimedEvent
Source§fn clone(&self) -> TimedEvent
fn clone(&self) -> TimedEvent
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 TimedEvent
impl Debug for TimedEvent
Source§impl<'de> Deserialize<'de> for TimedEvent
impl<'de> Deserialize<'de> for TimedEvent
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 TimedEvent
Source§impl PartialEq for TimedEvent
impl PartialEq for TimedEvent
Source§fn eq(&self, other: &TimedEvent) -> bool
fn eq(&self, other: &TimedEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TimedEvent
impl Serialize for TimedEvent
impl StructuralPartialEq for TimedEvent
Auto Trait Implementations§
impl Freeze for TimedEvent
impl RefUnwindSafe for TimedEvent
impl Send for TimedEvent
impl Sync for TimedEvent
impl Unpin for TimedEvent
impl UnsafeUnpin for TimedEvent
impl UnwindSafe for TimedEvent
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