pub enum SegmentPolicy {
Duration(Duration),
}Expand description
How a SegmentedMp4Muxer decides a segment is done and it’s time to
cut to a new file.
Variants§
Duration(Duration)
Roughly this long per segment. “Roughly” because the actual cut
only happens once this much time has elapsed and the video
track’s own next packet is a keyframe (see
SegmentedMp4Muxer::open’s own docs) — a segment can run a bit
longer than requested if keyframes are sparse.
Trait Implementations§
Source§impl Clone for SegmentPolicy
impl Clone for SegmentPolicy
Source§fn clone(&self) -> SegmentPolicy
fn clone(&self) -> SegmentPolicy
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 SegmentPolicy
Auto Trait Implementations§
impl Freeze for SegmentPolicy
impl RefUnwindSafe for SegmentPolicy
impl Send for SegmentPolicy
impl Sync for SegmentPolicy
impl Unpin for SegmentPolicy
impl UnsafeUnpin for SegmentPolicy
impl UnwindSafe for SegmentPolicy
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