[][src]Struct hls_m3u8::MediaSegmentBuilder

pub struct MediaSegmentBuilder { /* fields omitted */ }

Media segment builder.

Methods

impl MediaSegmentBuilder[src]

pub fn new() -> Self[src]

Makes a new MediaSegmentBuilder instance.

pub fn uri(&mut self, uri: SingleLineString) -> &mut Self[src]

Sets the URI of the resulting media segment.

pub fn tag<T: Into<MediaSegmentTag>>(&mut self, tag: T) -> &mut Self[src]

Sets the given tag to the resulting media segment.

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

Builds a MediaSegment instance.

Trait Implementations

impl Default for MediaSegmentBuilder[src]

impl Clone for MediaSegmentBuilder[src]

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