#[non_exhaustive]pub enum BackgroundAudio {
Keep,
Mute,
}Expand description
What the game’s sound does while its window has no focus.
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.
Keep
The sound goes on as it was.
Mute
The music, the sounds and the voices are silent; the music keeps its place, and the player’s volumes come back with the focus.
Trait Implementations§
Source§impl Clone for BackgroundAudio
impl Clone for BackgroundAudio
Source§fn clone(&self) -> BackgroundAudio
fn clone(&self) -> BackgroundAudio
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 BackgroundAudio
Source§impl Debug for BackgroundAudio
impl Debug for BackgroundAudio
Source§impl Default for BackgroundAudio
impl Default for BackgroundAudio
Source§fn default() -> BackgroundAudio
fn default() -> BackgroundAudio
Returns the “default value” for a type. Read more
impl Eq for BackgroundAudio
Source§impl PartialEq for BackgroundAudio
impl PartialEq for BackgroundAudio
impl StructuralPartialEq for BackgroundAudio
Auto Trait Implementations§
impl Freeze for BackgroundAudio
impl RefUnwindSafe for BackgroundAudio
impl Send for BackgroundAudio
impl Sync for BackgroundAudio
impl Unpin for BackgroundAudio
impl UnsafeUnpin for BackgroundAudio
impl UnwindSafe for BackgroundAudio
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