#[non_exhaustive]pub struct SegmentSettings {
pub segment_duration: Option<Duration>,
pub individual_segments: bool,
/* private fields */
}
Expand description
Segment settings for ts
, fmp4
and vtt
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.segment_duration: Option<Duration>
Duration of the segments in seconds. The default is 6.0s
. Note that
segmentDuration
must be greater than or equal to
gopDuration
, and segmentDuration
must be divisible by
gopDuration
.
individual_segments: bool
Required. Create an individual segment file. The default is false
.
Implementations§
Source§impl SegmentSettings
impl SegmentSettings
pub fn new() -> Self
Sourcepub fn set_segment_duration<T>(self, v: T) -> Self
pub fn set_segment_duration<T>(self, v: T) -> Self
Sets the value of segment_duration.
Sourcepub fn set_or_clear_segment_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_segment_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of segment_duration.
Sourcepub fn set_individual_segments<T: Into<bool>>(self, v: T) -> Self
pub fn set_individual_segments<T: Into<bool>>(self, v: T) -> Self
Sets the value of individual_segments.
Trait Implementations§
Source§impl Clone for SegmentSettings
impl Clone for SegmentSettings
Source§fn clone(&self) -> SegmentSettings
fn clone(&self) -> SegmentSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SegmentSettings
impl Debug for SegmentSettings
Source§impl Default for SegmentSettings
impl Default for SegmentSettings
Source§fn default() -> SegmentSettings
fn default() -> SegmentSettings
Returns the “default value” for a type. Read more
Source§impl Message for SegmentSettings
impl Message for SegmentSettings
Source§impl PartialEq for SegmentSettings
impl PartialEq for SegmentSettings
impl StructuralPartialEq for SegmentSettings
Auto Trait Implementations§
impl Freeze for SegmentSettings
impl RefUnwindSafe for SegmentSettings
impl Send for SegmentSettings
impl Sync for SegmentSettings
impl Unpin for SegmentSettings
impl UnwindSafe for SegmentSettings
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