#[non_exhaustive]pub struct Policy {
pub max_bandwidth: Option<u64>,
pub max_height: Option<u32>,
pub codec_prefixes: Vec<String>,
pub preferred_audio_language: Option<String>,
}Expand description
Selection policy; the same three limits as hls_runtime::VariantPolicy
plus the audio language.
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.max_bandwidth: Option<u64>Skip Representations above this bandwidth.
max_height: Option<u32>Skip Representations above this height.
codec_prefixes: Vec<String>When non-empty, a Representation must carry a codec starting with one of these prefixes.
preferred_audio_language: Option<String>Preferred audio language (BCP 47).
Trait Implementations§
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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