pub struct BreakState {
pub decision: AdBreakDecision,
pub entered_at: ConditionedSplicePoint,
pub resumed_at: Option<ConditionedSplicePoint>,
}Expand description
One session’s ad break: the decision being rendered, plus the conditioned splice points it entered (and, once known, resumed) at.
Fields§
§decision: AdBreakDecisionThe decision being rendered for this break.
entered_at: ConditionedSplicePointThe conditioned splice point the break was entered at.
resumed_at: Option<ConditionedSplicePoint>The conditioned splice point playback resumed at, once known.
Implementations§
Source§impl BreakState
impl BreakState
Sourcepub fn new(
decision: AdBreakDecision,
entered_at: ConditionedSplicePoint,
) -> Self
pub fn new( decision: AdBreakDecision, entered_at: ConditionedSplicePoint, ) -> Self
Start a new break with no resumption point yet known.
Sourcepub fn is_resumed(&self) -> bool
pub fn is_resumed(&self) -> bool
Whether Self::resumed_at has been recorded (the break has ended).
Trait Implementations§
Source§impl Clone for BreakState
impl Clone for BreakState
Source§impl Debug for BreakState
impl Debug for BreakState
Source§impl PartialEq for BreakState
impl PartialEq for BreakState
impl StructuralPartialEq for BreakState
Auto Trait Implementations§
impl Freeze for BreakState
impl RefUnwindSafe for BreakState
impl Send for BreakState
impl Sync for BreakState
impl Unpin for BreakState
impl UnsafeUnpin for BreakState
impl UnwindSafe for BreakState
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