pub struct Variant {
pub bandwidth: u32,
pub codecs: String,
pub resolution: Option<(u32, u32)>,
pub uri: String,
pub extra_attrs: Vec<(String, String)>,
}Expand description
A variant stream entry in a master playlist.
Fields§
§bandwidth: u32BANDWIDTH in bits per second.
codecs: StringCODECS string (e.g. "avc1.64001e,mp4a.40.2").
resolution: Option<(u32, u32)>RESOLUTION as (width, height), if present.
uri: StringURI of the media playlist for this variant.
extra_attrs: Vec<(String, String)>Unmodeled attributes, retained so REQ- prefixed names can fire
RFC 8216bis §8 row 12. Sorted by name on parse (deterministic).
Trait Implementations§
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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