[][src]Struct hls_m3u8::tags::ExtXMedia

pub struct ExtXMedia { /* fields omitted */ }

Methods

impl ExtXMedia[src]

pub fn new(
    media_type: MediaType,
    group_id: QuotedString,
    name: QuotedString
) -> Self
[src]

Makes a new ExtXMedia tag.

pub fn media_type(&self) -> MediaType[src]

Returns the type of the media associated with this tag.

pub fn group_id(&self) -> &QuotedString[src]

Returns the identifier that specifies the group to which the rendition belongs.

pub fn name(&self) -> &QuotedString[src]

Returns a human-readable description of the rendition.

pub fn uri(&self) -> Option<&QuotedString>[src]

Returns the URI that identifies the media playlist.

pub fn language(&self) -> Option<&QuotedString>[src]

Returns the name of the primary language used in the rendition.

pub fn assoc_language(&self) -> Option<&QuotedString>[src]

Returns the name of a language associated with the rendition.

pub fn default(&self) -> bool[src]

Returns whether this is the default rendition.

pub fn autoselect(&self) -> bool[src]

Returns whether the client may choose to play this rendition in the absence of explicit user preference.

pub fn forced(&self) -> bool[src]

Returns whether the rendition contains content that is considered essential to play.

pub fn instream_id(&self) -> Option<InStreamId>[src]

Returns the identifier that specifies a rendition within the segments in the media playlist.

pub fn characteristics(&self) -> Option<&QuotedString>[src]

Returns a string that represents uniform type identifiers (UTI).

Each UTI indicates an individual characteristic of the rendition.

pub fn channels(&self) -> Option<&QuotedString>[src]

Returns a string that represents the parameters of the rendition.

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

Returns the protocol compatibility version that this tag requires.

Trait Implementations

impl Clone for ExtXMedia[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<ExtXMedia> for MasterPlaylistTag[src]

impl PartialEq<ExtXMedia> for ExtXMedia[src]

impl Eq for ExtXMedia[src]

impl Display for ExtXMedia[src]

impl Debug for ExtXMedia[src]

impl Hash for ExtXMedia[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for ExtXMedia[src]

type Err = Error

The associated error which can be returned from parsing.

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> From<T> for T[src]

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

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