pub struct MasterSelection {
pub variants: Vec<VariantInfo>,
pub chosen: usize,
pub renditions: Vec<RenditionInfo>,
}Expand description
The result of selecting a variant from a master playlist.
Fields§
§variants: Vec<VariantInfo>Variants in playlist order.
chosen: usizeIndex of the chosen variant in Self::variants.
renditions: Vec<RenditionInfo>Renditions exposed by the master playlist. Renditions with a url are
not fetched by this client; create a second HlsClient::new(rendition.url)
to play one.
Trait Implementations§
Source§impl Clone for MasterSelection
impl Clone for MasterSelection
Source§impl Debug for MasterSelection
impl Debug for MasterSelection
Source§impl PartialEq for MasterSelection
impl PartialEq for MasterSelection
impl StructuralPartialEq for MasterSelection
Auto Trait Implementations§
impl Freeze for MasterSelection
impl RefUnwindSafe for MasterSelection
impl Send for MasterSelection
impl Sync for MasterSelection
impl Unpin for MasterSelection
impl UnsafeUnpin for MasterSelection
impl UnwindSafe for MasterSelection
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