Enum tetra::audio::SoundState [−][src]
pub enum SoundState { Playing, Paused, Stopped, }
Expand description
The states that playback of a SoundInstance
can be in.
Variants
Expand description
The sound is currently playing.
If a SoundInstance
is created via Sound::play
, Sound::play_with
,
Sound::repeat
or Sound::repeat_with
, it will be in this state
initially.
Expand description
The sound is paused. If playback is resumed, it will continue from the point where it was paused.
If a SoundInstance
is created via Sound::spawn
or Sound::spawn_with
,
it will be in this state initially.
Expand description
The sound has stopped, either manually or as a result of it reaching the end of the audio data. If playback is resumed, it will start over from the beginning of the sound.
This state will never occur while a SoundInstance
is set
to be repeating
.
Trait Implementations
impl Clone for SoundState
[src]
impl Clone for SoundState
[src]fn clone(&self) -> SoundState
[src]
fn clone(&self) -> SoundState
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SoundState
[src]
impl Debug for SoundState
[src]impl PartialEq<SoundState> for SoundState
[src]
impl PartialEq<SoundState> for SoundState
[src]impl Copy for SoundState
[src]
impl StructuralPartialEq for SoundState
[src]
Auto Trait Implementations
impl RefUnwindSafe for SoundState
impl Send for SoundState
impl Sync for SoundState
impl Unpin for SoundState
impl UnwindSafe for SoundState
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more