[−][src]Struct hls_m3u8::MediaPlaylistOptions
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]
&mut self,
allowable_excess_duration: Duration
) -> &mut Self
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]
fn clone(&self) -> MediaPlaylistOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MediaPlaylistOptions
[src]
Auto Trait Implementations
impl Send for MediaPlaylistOptions
impl Unpin for MediaPlaylistOptions
impl Sync for MediaPlaylistOptions
impl RefUnwindSafe for MediaPlaylistOptions
impl UnwindSafe for MediaPlaylistOptions
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,