#[non_exhaustive]pub struct VariantInfo {
pub rep: RepRef,
pub init_url: Option<String>,
pub bandwidth: u64,
pub resolution: Option<(u32, u32)>,
pub codecs: Option<String>,
pub audio_group: Option<String>,
}Expand description
One Representation of a selectable video AdaptationSet, in the shape a host’s variant list wants (DESIGN D11).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rep: RepRefWhere it is in the MPD.
init_url: Option<String>Absolute URL of its Initialization Segment, when it has one.
bandwidth: u64@bandwidth, bits per second.
resolution: Option<(u32, u32)>(width, height).
codecs: Option<String>@codecs.
audio_group: Option<String>The @group (else the @id) of the audio AdaptationSet it pairs
with, when the Period has audio.
Trait Implementations§
Source§impl Clone for VariantInfo
impl Clone for VariantInfo
Source§impl Debug for VariantInfo
impl Debug for VariantInfo
Source§impl PartialEq for VariantInfo
impl PartialEq for VariantInfo
impl StructuralPartialEq for VariantInfo
Auto Trait Implementations§
impl Forget for VariantInfo
impl Freeze for VariantInfo
impl RefUnwindSafe for VariantInfo
impl Send for VariantInfo
impl Sync for VariantInfo
impl Unpin for VariantInfo
impl UnsafeUnpin for VariantInfo
impl UnwindSafe for VariantInfo
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