Struct hls_m3u8::MasterPlaylistBuilder
[−]
[src]
pub struct MasterPlaylistBuilder { /* fields omitted */ }
Master playlist builder.
Methods
impl MasterPlaylistBuilder
[src]
fn new() -> Self
[src]
Makes a new MasterPlaylistBuilder
instance.
fn version(&mut self, version: ProtocolVersion) -> &mut Self
[src]
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.
fn tag<T: Into<MasterPlaylistTag>>(&mut self, tag: T) -> &mut Self
[src]
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.
fn finish(self) -> Result<MasterPlaylist>
[src]
Builds a MasterPlaylist
instance.
Trait Implementations
impl Debug for MasterPlaylistBuilder
[src]
impl Clone for MasterPlaylistBuilder
[src]
fn clone(&self) -> MasterPlaylistBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more