Struct m3u8_rs::MasterPlaylist
source · pub struct MasterPlaylist {
pub version: Option<usize>,
pub variants: Vec<VariantStream>,
pub session_data: Vec<SessionData>,
pub session_key: Vec<SessionKey>,
pub start: Option<Start>,
pub independent_segments: bool,
pub alternatives: Vec<AlternativeMedia>,
pub unknown_tags: Vec<ExtTag>,
}
Expand description
A Master Playlist provides a set of Variant Streams, each of which describes a different version of the same content.
Fields§
§version: Option<usize>
§variants: Vec<VariantStream>
§session_data: Vec<SessionData>
§session_key: Vec<SessionKey>
§start: Option<Start>
§independent_segments: bool
§alternatives: Vec<AlternativeMedia>
Implementations§
source§impl MasterPlaylist
impl MasterPlaylist
pub fn get_newest_variant(&mut self) -> Option<&mut VariantStream>
pub fn write_to<T: Write>(&self, w: &mut T) -> Result<()>
Trait Implementations§
source§impl Clone for MasterPlaylist
impl Clone for MasterPlaylist
source§fn clone(&self) -> MasterPlaylist
fn clone(&self) -> MasterPlaylist
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 MasterPlaylist
impl Debug for MasterPlaylist
source§impl Default for MasterPlaylist
impl Default for MasterPlaylist
source§fn default() -> MasterPlaylist
fn default() -> MasterPlaylist
Returns the “default value” for a type. Read more
source§impl PartialEq for MasterPlaylist
impl PartialEq for MasterPlaylist
source§fn eq(&self, other: &MasterPlaylist) -> bool
fn eq(&self, other: &MasterPlaylist) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MasterPlaylist
Auto Trait Implementations§
impl RefUnwindSafe for MasterPlaylist
impl Send for MasterPlaylist
impl Sync for MasterPlaylist
impl Unpin for MasterPlaylist
impl UnwindSafe for MasterPlaylist
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