pub struct VariantSet {
pub variants: Vec<VariantStream>,
}Expand description
A collection of variant streams forming an adaptive set.
Fields§
§variants: Vec<VariantStream>The variant streams.
Implementations§
Source§impl VariantSet
impl VariantSet
Sourcepub fn add(&mut self, variant: VariantStream)
pub fn add(&mut self, variant: VariantStream)
Add a variant stream.
Sourcepub fn video_variants(&self) -> Vec<&VariantStream>
pub fn video_variants(&self) -> Vec<&VariantStream>
Get all video variants, sorted by bandwidth (ascending).
Sourcepub fn audio_variants(&self) -> Vec<&VariantStream>
pub fn audio_variants(&self) -> Vec<&VariantStream>
Get all audio variants.
Sourcepub fn validate(&self) -> PackagerResult<()>
pub fn validate(&self) -> PackagerResult<()>
Trait Implementations§
Source§impl Clone for VariantSet
impl Clone for VariantSet
Source§fn clone(&self) -> VariantSet
fn clone(&self) -> VariantSet
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 VariantSet
impl Debug for VariantSet
Auto Trait Implementations§
impl Freeze for VariantSet
impl RefUnwindSafe for VariantSet
impl Send for VariantSet
impl Sync for VariantSet
impl Unpin for VariantSet
impl UnsafeUnpin for VariantSet
impl UnwindSafe for VariantSet
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