pub enum PlaybackState {
Idle,
Playing,
Paused,
Ended,
Error,
}Expand description
Transport playback state shared across GIF, LIVE Photo, Video, and Audio players.
Variants§
Idle
Loaded and ready at its initial position.
Playing
Actively advancing timeline frames or audio samples.
Paused
Halted at the current playback timestamp.
Ended
Reached the end of a non-looping timeline.
Error
Encountered a decoding or source loading failure.
Trait Implementations§
Source§impl Clone for PlaybackState
impl Clone for PlaybackState
impl Copy for PlaybackState
Source§impl Debug for PlaybackState
impl Debug for PlaybackState
Source§impl Default for PlaybackState
impl Default for PlaybackState
Source§impl<'de> Deserialize<'de> for PlaybackState
impl<'de> Deserialize<'de> for PlaybackState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlaybackState
Source§impl Hash for PlaybackState
impl Hash for PlaybackState
Source§impl PartialEq for PlaybackState
impl PartialEq for PlaybackState
Source§impl Serialize for PlaybackState
impl Serialize for PlaybackState
impl StructuralPartialEq for PlaybackState
Auto Trait Implementations§
impl Forget for PlaybackState
impl Freeze for PlaybackState
impl Move for PlaybackState
impl RefUnwindSafe for PlaybackState
impl Send for PlaybackState
impl Sync for PlaybackState
impl Unpin for PlaybackState
impl UnsafeUnpin for PlaybackState
impl UnwindSafe for PlaybackState
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