pub enum PauseReason {
Requested,
End,
Interrupted,
OutputRemoved,
Backgrounded,
}Expand description
Why a player is paused.
Variants§
Requested
The app paused it, or has not played it yet.
End
It reached the end of media it does not loop: Apple’s played-to-end, Media3’s end of the
media item, the web’s ended.
Interrupted
The system took the sound for something else, a call or another app: Apple’s audio session interruption, Android’s audio focus loss.
OutputRemoved
The sound’s output went, such as headphones unplugged: Android’s audio becoming noisy.
Backgrounded
The app went to the background, where the system pauses its video: Apple’s app backgrounded.
Trait Implementations§
Source§impl Clone for PauseReason
impl Clone for PauseReason
impl Copy for PauseReason
Source§impl Debug for PauseReason
impl Debug for PauseReason
impl Eq for PauseReason
Source§impl PartialEq for PauseReason
impl PartialEq for PauseReason
impl StructuralPartialEq for PauseReason
Auto Trait Implementations§
impl Freeze for PauseReason
impl RefUnwindSafe for PauseReason
impl Send for PauseReason
impl Sync for PauseReason
impl Unpin for PauseReason
impl UnsafeUnpin for PauseReason
impl UnwindSafe for PauseReason
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.