Enum RenditionMode
pub enum RenditionMode {
Auto,
Pinned(String),
Off,
}Expand description
How the rendition is chosen.
Variants§
Auto
Follows the link.
Without network signals, holds the best rendition that fits.
Pinned(String)
Holds the named rendition.
If it cannot be played, plays as Auto would, reports
why, and returns to it when it becomes available.
Off
Plays no video, and leaves audio unaffected (a tile scrolled off screen).
Implementations§
§impl RenditionMode
impl RenditionMode
pub fn pinned(name: impl Into<String>) -> RenditionMode
pub fn pinned(name: impl Into<String>) -> RenditionMode
Returns a mode holding the rendition name.
Trait Implementations§
§impl Clone for RenditionMode
impl Clone for RenditionMode
§fn clone(&self) -> RenditionMode
fn clone(&self) -> RenditionMode
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 more§impl Debug for RenditionMode
impl Debug for RenditionMode
§impl Default for RenditionMode
impl Default for RenditionMode
§fn default() -> RenditionMode
fn default() -> RenditionMode
Returns the “default value” for a type. Read more
impl Eq for RenditionMode
§impl PartialEq for RenditionMode
impl PartialEq for RenditionMode
impl StructuralPartialEq for RenditionMode
Auto Trait Implementations§
impl Freeze for RenditionMode
impl RefUnwindSafe for RenditionMode
impl Send for RenditionMode
impl Sync for RenditionMode
impl Unpin for RenditionMode
impl UnsafeUnpin for RenditionMode
impl UnwindSafe for RenditionMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.