pub enum HlsMode {
Live {
window_size: usize,
delete_old_segments: bool,
},
Event,
Vod,
}Expand description
How the media playlist grows and which completed segments remain referenced by it.
Variants§
Live
A sliding live playlist. window_size is the maximum number of
entries kept in the manifest; delete_old_segments also removes
segment files after they fall outside that window.
Event
An append-only event playlist. Every segment remains listed and the
playlist receives #EXT-X-ENDLIST when every track finishes.
Vod
A complete video-on-demand playlist. Every segment remains listed and the playlist is finalized when every track finishes.
Trait Implementations§
impl Copy for HlsMode
impl Eq for HlsMode
impl StructuralPartialEq for HlsMode
Auto Trait Implementations§
impl Freeze for HlsMode
impl RefUnwindSafe for HlsMode
impl Send for HlsMode
impl Sync for HlsMode
impl Unpin for HlsMode
impl UnsafeUnpin for HlsMode
impl UnwindSafe for HlsMode
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