pub enum WaitReason {
Data,
EvaluatingData,
HeldBySystem,
}Expand description
Why a player waits to play.
Variants§
Data
For media data: Apple’s waiting to minimize stalls, Media3’s buffering, the web’s
waiting, Windows’ buffering.
EvaluatingData
The system judges whether data comes fast enough to play on, and Apple advises showing no waiting yet: Apple’s waiting while evaluating the buffering rate.
HeldBySystem
The system holds it back for a moment: Android’s playback suppressed by a short loss of audio focus.
Trait Implementations§
Source§impl Clone for WaitReason
impl Clone for WaitReason
impl Copy for WaitReason
Source§impl Debug for WaitReason
impl Debug for WaitReason
impl Eq for WaitReason
Source§impl PartialEq for WaitReason
impl PartialEq for WaitReason
impl StructuralPartialEq for WaitReason
Auto Trait Implementations§
impl Freeze for WaitReason
impl RefUnwindSafe for WaitReason
impl Send for WaitReason
impl Sync for WaitReason
impl Unpin for WaitReason
impl UnsafeUnpin for WaitReason
impl UnwindSafe for WaitReason
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,
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.