[][src]Struct hls_m3u8::MediaSegment

pub struct MediaSegment { /* fields omitted */ }

Media segment.

Methods

impl MediaSegment[src]

pub fn uri(&self) -> &SingleLineString[src]

Returns the URI of the media segment.

pub fn inf_tag(&self) -> &ExtInf[src]

Returns the EXT-X-INF tag associated with the media segment.

pub fn byte_range_tag(&self) -> Option<ExtXByteRange>[src]

Returns the EXT-X-BYTERANGE tag associated with the media segment.

pub fn date_range_tag(&self) -> Option<&ExtXDateRange>[src]

Returns the EXT-X-DATERANGE tag associated with the media segment.

pub fn discontinuity_tag(&self) -> Option<ExtXDiscontinuity>[src]

Returns the EXT-X-DISCONTINUITY tag associated with the media segment.

pub fn program_date_time_tag(&self) -> Option<&ExtXProgramDateTime>[src]

Returns the EXT-X-PROGRAM-DATE-TIME tag associated with the media segment.

pub fn map_tag(&self) -> Option<&ExtXMap>[src]

Returns the EXT-X-MAP tag associated with the media segment.

pub fn key_tags(&self) -> &[ExtXKey][src]

Returns the EXT-X-KEY tags associated with the media segment.

pub fn requires_version(&self) -> ProtocolVersion[src]

Returns the protocol compatibility version that this segment requires.

Trait Implementations

impl Clone for MediaSegment[src]

impl Debug for MediaSegment[src]

impl Display for MediaSegment[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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