Struct hls_m3u8::tags::ExtXMedia [−][src]
pub struct ExtXMedia { /* fields omitted */ }
Methods
impl ExtXMedia
[src]
impl ExtXMedia
pub fn new(
media_type: MediaType,
group_id: QuotedString,
name: QuotedString
) -> Self
[src]
pub fn new(
media_type: MediaType,
group_id: QuotedString,
name: QuotedString
) -> Self
Makes a new ExtXMedia
tag.
pub fn media_type(&self) -> MediaType
[src]
pub fn media_type(&self) -> MediaType
Returns the type of the media associated with this tag.
pub fn group_id(&self) -> &QuotedString
[src]
pub fn group_id(&self) -> &QuotedString
Returns the identifier that specifies the group to which the rendition belongs.
pub fn name(&self) -> &QuotedString
[src]
pub fn name(&self) -> &QuotedString
Returns a human-readable description of the rendition.
pub fn uri(&self) -> Option<&QuotedString>
[src]
pub fn uri(&self) -> Option<&QuotedString>
Returns the URI that identifies the media playlist.
pub fn language(&self) -> Option<&QuotedString>
[src]
pub fn language(&self) -> Option<&QuotedString>
Returns the name of the primary language used in the rendition.
pub fn assoc_language(&self) -> Option<&QuotedString>
[src]
pub fn assoc_language(&self) -> Option<&QuotedString>
Returns the name of a language associated with the rendition.
pub fn default(&self) -> bool
[src]
pub fn default(&self) -> bool
Returns whether this is the default rendition.
pub fn autoselect(&self) -> bool
[src]
pub fn autoselect(&self) -> bool
Returns whether the client may choose to play this rendition in the absence of explicit user preference.
pub fn forced(&self) -> bool
[src]
pub fn forced(&self) -> bool
Returns whether the rendition contains content that is considered essential to play.
pub fn instream_id(&self) -> Option<InStreamId>
[src]
pub fn instream_id(&self) -> Option<InStreamId>
Returns the identifier that specifies a rendition within the segments in the media playlist.
pub fn characteristics(&self) -> Option<&QuotedString>
[src]
pub fn characteristics(&self) -> Option<&QuotedString>
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]
pub fn channels(&self) -> Option<&QuotedString>
Returns a string that represents the parameters of the rendition.
pub fn requires_version(&self) -> ProtocolVersion
[src]
pub fn requires_version(&self) -> ProtocolVersion
Returns the protocol compatibility version that this tag requires.
Trait Implementations
impl Debug for ExtXMedia
[src]
impl Debug for ExtXMedia
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ExtXMedia
[src]
impl Clone for ExtXMedia
fn clone(&self) -> ExtXMedia
[src]
fn clone(&self) -> ExtXMedia
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ExtXMedia
[src]
impl PartialEq for ExtXMedia
fn eq(&self, other: &ExtXMedia) -> bool
[src]
fn eq(&self, other: &ExtXMedia) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExtXMedia) -> bool
[src]
fn ne(&self, other: &ExtXMedia) -> bool
This method tests for !=
.
impl Eq for ExtXMedia
[src]
impl Eq for ExtXMedia
impl Hash for ExtXMedia
[src]
impl Hash for ExtXMedia
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for ExtXMedia
[src]
impl Display for ExtXMedia
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for ExtXMedia
[src]
impl FromStr for ExtXMedia
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
fn from_str(s: &str) -> Result<Self>
Parses a string s
to return a value of this type. Read more
impl From<ExtXMedia> for MasterPlaylistTag
[src]
impl From<ExtXMedia> for MasterPlaylistTag