Enum SoundState
#[non_exhaustive]pub enum SoundState {
Waiting,
Playing,
Stopped,
}Expand description
Where a mod’s sound is (SoundRef’s state).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Waiting
Not started yet: queued for the next audio update, waiting out play_local_sound’s
after ticks, or between a looping sound’s repeats (SoundPlay::looping’s delay).
Playing
Playing (SoundEngine.isActive).
Stopped
Over: it ended, was stopped, faded to 0 or was cleared. It never plays again.
Trait Implementations§
§impl Clone for SoundState
impl Clone for SoundState
§fn clone(&self) -> SoundState
fn clone(&self) -> SoundState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SoundState
§impl Debug for SoundState
impl Debug for SoundState
impl Eq for SoundState
§impl Hash for SoundState
impl Hash for SoundState
§impl PartialEq for SoundState
impl PartialEq for SoundState
impl StructuralPartialEq for SoundState
Auto Trait Implementations§
impl Freeze for SoundState
impl RefUnwindSafe for SoundState
impl Send for SoundState
impl Sync for SoundState
impl Unpin for SoundState
impl UnsafeUnpin for SoundState
impl UnwindSafe for SoundState
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