#[non_exhaustive]pub struct StreamEvent {
pub presentation_time: u64,
pub duration: Option<u64>,
pub id: Option<u64>,
pub status: Option<EventStatus>,
pub message_data: Option<String>,
pub text: String,
pub supplemental_properties: Vec<Descriptor>,
pub essential_properties: Vec<Descriptor>,
pub service_descriptions: Vec<ServiceDescription>,
pub unsupported: Option<Unsupported>,
}Expand description
One Event of an EventStream (ISO/IEC 23009-1 clause 5.10.2, Table 28;
Annex B EventType).
An Event whose content is an XML payload (SelectionInfo,
InsertPresentation, ReplacePresentation or a foreign-namespace
element, e.g. an SCTE 35 Signal) is parsed with StreamEvent::unsupported
set and its payload dropped; Mpd::to_xml then refuses to write the MPD
with Unsupported::EventXmlPayload instead of silently losing it.
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.presentation_time: u64@presentationTime, in the EventStream timescale (default 0).
duration: Option<u64>@duration, in the EventStream timescale.
id: Option<u64>@id.
status: Option<EventStatus>@status; None when absent (the schema default is repeat).
message_data: Option<String>@messageData (deprecated since ed.4, prohibited by the ed.6 schema).
text: StringThe element’s character data, trimmed: a text or base64 message body.
supplemental_properties: Vec<Descriptor>SupplementalProperty children.
essential_properties: Vec<Descriptor>EssentialProperty children.
service_descriptions: Vec<ServiceDescription>ServiceDescription children (ed.6 service-description events).
unsupported: Option<Unsupported>Set when the Event carries an XML payload this model cannot hold.
Trait Implementations§
Source§impl Clone for StreamEvent
impl Clone for StreamEvent
Source§fn clone(&self) -> StreamEvent
fn clone(&self) -> StreamEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more