pub enum StreamCodec {
Av1,
Vp9,
Vp8,
Opus,
Vorbis,
Flac,
WebVtt,
}Expand description
Codec identifier for a variant stream.
Variants§
Av1
AV1 video codec.
Vp9
VP9 video codec.
Vp8
VP8 video codec.
Opus
Opus audio codec.
Vorbis
Vorbis audio codec.
Flac
FLAC audio codec.
WebVtt
WebVTT subtitle format.
Implementations§
Source§impl StreamCodec
impl StreamCodec
Sourcepub const fn codecs_string(&self) -> &'static str
pub const fn codecs_string(&self) -> &'static str
MIME codecs string for HLS/DASH manifests.
Sourcepub const fn is_subtitle(&self) -> bool
pub const fn is_subtitle(&self) -> bool
Whether this codec represents subtitles.
Trait Implementations§
Source§impl Clone for StreamCodec
impl Clone for StreamCodec
Source§fn clone(&self) -> StreamCodec
fn clone(&self) -> StreamCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamCodec
impl Debug for StreamCodec
impl Eq for StreamCodec
Source§impl PartialEq for StreamCodec
impl PartialEq for StreamCodec
Source§fn eq(&self, other: &StreamCodec) -> bool
fn eq(&self, other: &StreamCodec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamCodec
Auto Trait Implementations§
impl Freeze for StreamCodec
impl RefUnwindSafe for StreamCodec
impl Send for StreamCodec
impl Sync for StreamCodec
impl Unpin for StreamCodec
impl UnsafeUnpin for StreamCodec
impl UnwindSafe for StreamCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more