pub struct IFrameVariant {
pub bandwidth: u32,
pub codecs: Option<String>,
pub resolution: Option<(u32, u32)>,
pub uri: String,
pub extra_attrs: Vec<(String, String)>,
}Expand description
An I-frame-only rendition entry for a master playlist — RFC 8216 §4.3.4.2
(#EXT-X-I-FRAME-STREAM-INF).
Unlike Variant / #EXT-X-STREAM-INF, the URI is an attribute on the
tag line itself (not on a following line). Rendered as:
#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=<n>[,CODECS="<c>"][,RESOLUTION=<w>x<h>],URI="<uri>"Fields§
§bandwidth: u32BANDWIDTH in bits per second (required).
codecs: Option<String>CODECS RFC 6381 string (e.g. "hvc1.1.6.L93.B0"). None to omit.
resolution: Option<(u32, u32)>RESOLUTION as (width, height). None to omit.
uri: StringURI of the I-frame-only media playlist.
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§
Source§impl Clone for IFrameVariant
impl Clone for IFrameVariant
Source§fn clone(&self) -> IFrameVariant
fn clone(&self) -> IFrameVariant
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 IFrameVariant
impl Debug for IFrameVariant
Source§impl Default for IFrameVariant
impl Default for IFrameVariant
Source§fn default() -> IFrameVariant
fn default() -> IFrameVariant
Returns the “default value” for a type. Read more
Source§impl PartialEq for IFrameVariant
impl PartialEq for IFrameVariant
impl StructuralPartialEq for IFrameVariant
Auto Trait Implementations§
impl Freeze for IFrameVariant
impl RefUnwindSafe for IFrameVariant
impl Send for IFrameVariant
impl Sync for IFrameVariant
impl Unpin for IFrameVariant
impl UnsafeUnpin for IFrameVariant
impl UnwindSafe for IFrameVariant
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