[−][src]Enum tetra::audio::SoundState
The states that playback of a SoundInstance
can be in.
Variants
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.
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.
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]
fn clone(&self) -> SoundState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SoundState
[src]
impl Debug for SoundState
[src]
impl PartialEq<SoundState> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,