Enum kira::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<'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
source§impl Hash for PlaybackState
impl Hash for PlaybackState
source§impl PartialEq for PlaybackState
impl PartialEq 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 ==
.source§impl Serialize for PlaybackState
impl Serialize for PlaybackState
impl Copy for PlaybackState
impl Eq for PlaybackState
impl StructuralPartialEq for PlaybackState
Auto Trait Implementations§
impl RefUnwindSafe for PlaybackState
impl Send for PlaybackState
impl Sync for PlaybackState
impl Unpin 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