Struct hls_m3u8::MasterPlaylistBuilder [−][src]
pub struct MasterPlaylistBuilder { /* fields omitted */ }
Master playlist builder.
Methods
impl MasterPlaylistBuilder
[src]
impl MasterPlaylistBuilder
pub fn new() -> Self
[src]
pub fn new() -> Self
Makes a new MasterPlaylistBuilder
instance.
ⓘImportant traits for &'a mut Rpub fn version(&mut self, version: ProtocolVersion) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn version(&mut self, version: ProtocolVersion) -> &mut Self
Sets the protocol compatibility version of the resulting playlist.
If the resulting playlist has tags which requires a compatibility version greater than version
,
finish()
method will fail with an ErrorKind::InvalidInput
error.
The default is the maximum version among the tags in the playlist.
ⓘImportant traits for &'a mut Rpub fn tag<T: Into<MasterPlaylistTag>>(&mut self, tag: T) -> &mut Self
[src]
ⓘImportant traits for &'a mut R
pub fn tag<T: Into<MasterPlaylistTag>>(&mut self, tag: T) -> &mut Self
Adds the given tag to the resulting playlist.
If it is forbidden to have multiple instance of the tag, the existing one will be overwritten.
pub fn finish(self) -> Result<MasterPlaylist>
[src]
pub fn finish(self) -> Result<MasterPlaylist>
Builds a MasterPlaylist
instance.
Trait Implementations
impl Debug for MasterPlaylistBuilder
[src]
impl Debug for MasterPlaylistBuilder
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MasterPlaylistBuilder
[src]
impl Clone for MasterPlaylistBuilder
fn clone(&self) -> MasterPlaylistBuilder
[src]
fn clone(&self) -> MasterPlaylistBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for MasterPlaylistBuilder
[src]
impl Default for MasterPlaylistBuilder
Auto Trait Implementations
impl Send for MasterPlaylistBuilder
impl Send for MasterPlaylistBuilder
impl Sync for MasterPlaylistBuilder
impl Sync for MasterPlaylistBuilder