Enum hls_m3u8::types::ClosedCaptions [−][src]
Expand description
The identifier of a closed captions group or its absence.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
It indicates the set of closed-caption renditions that can be used when playing the presentation.
The String
must match ExtXMedia::group_id
elsewhere in the
Playlist and it’s ExtXMedia::media_type
must be
MediaType::ClosedCaptions
.
This variant indicates that there are no closed captions in
any VariantStream
in the MasterPlaylist
, therefore all
VariantStream::ExtXStreamInf
tags must have this attribute with a
value of ClosedCaptions::None
.
Having ClosedCaptions
in one VariantStream
but not in another
can trigger playback inconsistencies.
Implementations
Creates a ClosedCaptions::GroupId
with the provided String
.
Example
use hls_m3u8::types::ClosedCaptions; assert_eq!( ClosedCaptions::group_id("vg1"), ClosedCaptions::GroupId("vg1".into()) );
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for ClosedCaptions<'a>
impl<'a> Send for ClosedCaptions<'a>
impl<'a> Sync for ClosedCaptions<'a>
impl<'a> Unpin for ClosedCaptions<'a>
impl<'a> UnwindSafe for ClosedCaptions<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more