Enum kira::sound::static_sound::PlaybackState
source · pub enum PlaybackState {
Playing,
Pausing,
Paused,
Stopping,
Stopped,
}
Expand description
The playback state of a sound.
Variants§
Playing
The sound is playing normally.
Pausing
The sound is fading out, and when the fade-out is finished, playback will pause.
Paused
Playback is paused.
Stopping
The sound is fading out, and when the fade-out is finished, playback will stop.
Stopped
The sound has stopped and can no longer be resumed.
Trait Implementations§
source§impl Clone for PlaybackState
impl Clone for PlaybackState
source§fn clone(&self) -> PlaybackState
fn clone(&self) -> PlaybackState
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 PlaybackState
impl Debug for PlaybackState
source§impl Hash for PlaybackState
impl Hash for PlaybackState
source§impl PartialEq<PlaybackState> for PlaybackState
impl PartialEq<PlaybackState> for PlaybackState
source§fn eq(&self, other: &PlaybackState) -> bool
fn eq(&self, other: &PlaybackState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.