pub struct BreakContext {
pub session_id: String,
pub splice_event_id: Option<u32>,
pub out_of_network: bool,
pub break_duration_ticks: Option<u64>,
pub splice_point_pts: u64,
}Expand description
Context handed to AdDecisionProvider::decide: what the SCTE-35 cue
told us about the upcoming break, plus which session is asking.
Fields§
§session_id: StringThe session requesting a decision.
splice_event_id: Option<u32>splice_event_id from the triggering splice_insert(), if known.
out_of_network: boolout_of_network_indicator — true for break start, false for
return-to-network.
break_duration_ticks: Option<u64>break_duration().duration, in 90 kHz ticks, if the cue carried one.
splice_point_pts: u64The (conditioned) media-timeline instant this break is scheduled to start at, in the caller’s clock unit (typically 90 kHz ticks).
Trait Implementations§
Source§impl Clone for BreakContext
impl Clone for BreakContext
Source§impl Debug for BreakContext
impl Debug for BreakContext
impl Eq for BreakContext
Source§impl PartialEq for BreakContext
impl PartialEq for BreakContext
impl StructuralPartialEq for BreakContext
Auto Trait Implementations§
impl Freeze for BreakContext
impl RefUnwindSafe for BreakContext
impl Send for BreakContext
impl Sync for BreakContext
impl Unpin for BreakContext
impl UnsafeUnpin for BreakContext
impl UnwindSafe for BreakContext
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