[][src]Struct hls_m3u8::MasterPlaylistBuilder

pub struct MasterPlaylistBuilder { /* fields omitted */ }

Master playlist builder.

Methods

impl MasterPlaylistBuilder[src]

pub fn new() -> Self[src]

Makes a new MasterPlaylistBuilder instance.

pub 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.

pub 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.

pub fn finish(self) -> Result<MasterPlaylist>[src]

Builds a MasterPlaylist instance.

Trait Implementations

impl Default for MasterPlaylistBuilder[src]

impl Clone for MasterPlaylistBuilder[src]

impl Debug for MasterPlaylistBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]