[−][src]Struct hls_m3u8::tags::ExtXMedia
Methods
impl ExtXMedia
[src]
pub fn new(
media_type: MediaType,
group_id: QuotedString,
name: QuotedString
) -> Self
[src]
media_type: MediaType,
group_id: QuotedString,
name: QuotedString
) -> Self
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(&self) -> 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<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromStr for ExtXMedia
[src]
Auto Trait Implementations
impl Sync for ExtXMedia
impl Send for ExtXMedia
impl Unpin for ExtXMedia
impl RefUnwindSafe for ExtXMedia
impl UnwindSafe for ExtXMedia
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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,