Enum egui_video::PlayerState
source · pub enum PlayerState {
Stopped,
EndOfFile,
Seeking(bool),
Paused,
Playing,
Restarting,
}
Expand description
The possible states of a Player
.
Variants§
Stopped
No playback.
EndOfFile
Streams have reached the end of the file.
Seeking(bool)
Stream is seeking. Inner bool represents whether or not the seek is currently in progress.
Paused
Playback is paused.
Playing
Playback is ongoing.
Restarting
Playback is scheduled to restart.
Trait Implementations§
source§impl Clone for PlayerState
impl Clone for PlayerState
source§fn clone(&self) -> PlayerState
fn clone(&self) -> PlayerState
Returns a copy 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 PlayerState
impl Debug for PlayerState
source§impl PartialEq for PlayerState
impl PartialEq for PlayerState
source§fn eq(&self, other: &PlayerState) -> bool
fn eq(&self, other: &PlayerState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PlayerState
impl StructuralPartialEq for PlayerState
Auto Trait Implementations§
impl RefUnwindSafe for PlayerState
impl Send for PlayerState
impl Sync for PlayerState
impl Unpin for PlayerState
impl UnwindSafe for PlayerState
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