Struct m3u8_rs::MediaPlaylist
source · pub struct MediaPlaylist {
pub version: Option<usize>,
pub target_duration: u64,
pub media_sequence: u64,
pub segments: Vec<MediaSegment>,
pub discontinuity_sequence: u64,
pub end_list: bool,
pub playlist_type: Option<MediaPlaylistType>,
pub i_frames_only: bool,
pub start: Option<Start>,
pub independent_segments: bool,
pub unknown_tags: Vec<ExtTag>,
}
Expand description
A Media Playlist contains a list of Media Segments, which when played sequentially will play the multimedia presentation.
Fields§
§version: Option<usize>
§target_duration: u64
#EXT-X-TARGETDURATION:<s>
media_sequence: u64
#EXT-X-MEDIA-SEQUENCE:<number>
segments: Vec<MediaSegment>
§discontinuity_sequence: u64
#EXT-X-DISCONTINUITY-SEQUENCE:<number>
end_list: bool
#EXT-X-ENDLIST
playlist_type: Option<MediaPlaylistType>
#EXT-X-PLAYLIST-TYPE
i_frames_only: bool
#EXT-X-I-FRAMES-ONLY
start: Option<Start>
#EXT-X-START
independent_segments: bool
#EXT-X-INDEPENDENT-SEGMENTS
Unknown tags before the first media segment
Implementations§
Trait Implementations§
source§impl Clone for MediaPlaylist
impl Clone for MediaPlaylist
source§fn clone(&self) -> MediaPlaylist
fn clone(&self) -> MediaPlaylist
Returns a copy 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 MediaPlaylist
impl Debug for MediaPlaylist
source§impl Default for MediaPlaylist
impl Default for MediaPlaylist
source§fn default() -> MediaPlaylist
fn default() -> MediaPlaylist
Returns the “default value” for a type. Read more
source§impl PartialEq for MediaPlaylist
impl PartialEq for MediaPlaylist
source§fn eq(&self, other: &MediaPlaylist) -> bool
fn eq(&self, other: &MediaPlaylist) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MediaPlaylist
Auto Trait Implementations§
impl RefUnwindSafe for MediaPlaylist
impl Send for MediaPlaylist
impl Sync for MediaPlaylist
impl Unpin for MediaPlaylist
impl UnwindSafe for MediaPlaylist
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