[][src]Struct hls_m3u8::MediaPlaylistOptions

pub struct MediaPlaylistOptions { /* fields omitted */ }

Media playlist options.

Methods

impl MediaPlaylistOptions[src]

pub fn new() -> Self[src]

Makes a new MediaPlaylistOptions with the default settings.

pub fn allowable_excess_segment_duration(
    &mut self,
    allowable_excess_duration: Duration
) -> &mut Self
[src]

Sets the allowable excess duration of each media segment in the associated playlist.

If there is a media segment of which duration exceeds #EXT-X-TARGETDURATION + allowable_excess_duration, the invocation of MediaPlaylistBuilder::finish() method will fail.

The default value is Duration::from_secs(0).

pub fn parse(&self, m3u8: &str) -> Result<MediaPlaylist>[src]

Parses the given M3U8 text with the specified settings.

Trait Implementations

impl Default for MediaPlaylistOptions[src]

impl Clone for MediaPlaylistOptions[src]

impl Debug for MediaPlaylistOptions[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]