Enum rich_sdl2_rust::audio::status::AudioStatus
source · pub enum AudioStatus {
Stopped,
Playing,
Paused,
}
Expand description
A playing status of an audio device.
Variants§
Stopped
An audio device is closed or on error.
Playing
An audio device is open and playing the sound.
Paused
An audio device is open but not playing the sound.
Trait Implementations§
source§impl Clone for AudioStatus
impl Clone for AudioStatus
source§fn clone(&self) -> AudioStatus
fn clone(&self) -> AudioStatus
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 AudioStatus
impl Debug for AudioStatus
source§impl From<u32> for AudioStatus
impl From<u32> for AudioStatus
source§impl PartialEq for AudioStatus
impl PartialEq for AudioStatus
source§fn eq(&self, other: &AudioStatus) -> bool
fn eq(&self, other: &AudioStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioStatus
impl Eq for AudioStatus
impl StructuralPartialEq for AudioStatus
Auto Trait Implementations§
impl RefUnwindSafe for AudioStatus
impl Send for AudioStatus
impl Sync for AudioStatus
impl Unpin for AudioStatus
impl UnwindSafe for AudioStatus
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