pub struct SegmentDecision {
pub skip: bool,
pub cut_previous: Option<f64>,
pub open_new: bool,
}Available on crate features
hls or record only.Expand description
What a consumer should do with a frame, per SegmentClock::observe.
Fields§
§skip: boolDrop this frame: no keyframe has anchored a segment yet.
cut_previous: Option<f64>Finalize the currently-open segment with this duration (seconds) before writing the current frame.
open_new: boolA new segment begins at this frame (the consumer should reset its muxer).
Trait Implementations§
Source§impl Clone for SegmentDecision
impl Clone for SegmentDecision
Source§fn clone(&self) -> SegmentDecision
fn clone(&self) -> SegmentDecision
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 moreimpl Copy for SegmentDecision
Source§impl Debug for SegmentDecision
impl Debug for SegmentDecision
Source§impl Default for SegmentDecision
impl Default for SegmentDecision
Source§fn default() -> SegmentDecision
fn default() -> SegmentDecision
Returns the “default value” for a type. Read more
Source§impl PartialEq for SegmentDecision
impl PartialEq for SegmentDecision
Source§fn eq(&self, other: &SegmentDecision) -> bool
fn eq(&self, other: &SegmentDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SegmentDecision
Auto Trait Implementations§
impl Freeze for SegmentDecision
impl RefUnwindSafe for SegmentDecision
impl Send for SegmentDecision
impl Sync for SegmentDecision
impl Unpin for SegmentDecision
impl UnsafeUnpin for SegmentDecision
impl UnwindSafe for SegmentDecision
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