#[non_exhaustive]pub enum IdleReason {
Cancelled,
Interrupted,
Finished,
Error,
}Expand description
The reason the player entered the Idle state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cancelled
The user or sender cancelled playback.
Interrupted
Playback was interrupted (e.g., by loading new media).
Finished
The media played to completion.
Error
An error occurred during playback.
Trait Implementations§
Source§impl Clone for IdleReason
impl Clone for IdleReason
Source§fn clone(&self) -> IdleReason
fn clone(&self) -> IdleReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdleReason
impl Debug for IdleReason
Source§impl Display for IdleReason
impl Display for IdleReason
Source§impl PartialEq for IdleReason
impl PartialEq for IdleReason
impl Copy for IdleReason
impl Eq for IdleReason
impl StructuralPartialEq for IdleReason
Auto Trait Implementations§
impl Freeze for IdleReason
impl RefUnwindSafe for IdleReason
impl Send for IdleReason
impl Sync for IdleReason
impl Unpin for IdleReason
impl UnsafeUnpin for IdleReason
impl UnwindSafe for IdleReason
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