#[repr(u32)]pub enum SoundGroupBehavior {
Fail = 0,
Mute = 1,
StealLowest = 2,
}
Expand description
Values specifying behavior when a sound group’s max audible value is exceeded.
Variants§
Fail = 0
Excess sounds will fail when calling System::play_sound
.
Mute = 1
Excess sounds will begin mute and will become audible when sufficient sounds are stopped.
StealLowest = 2
Excess sounds will steal from the quietest Sound
playing in the group.
Trait Implementations§
Source§impl Clone for SoundGroupBehavior
impl Clone for SoundGroupBehavior
Source§fn clone(&self) -> SoundGroupBehavior
fn clone(&self) -> SoundGroupBehavior
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 SoundGroupBehavior
impl Debug for SoundGroupBehavior
Source§impl From<SoundGroupBehavior> for u32
impl From<SoundGroupBehavior> for u32
Source§fn from(enum_value: SoundGroupBehavior) -> Self
fn from(enum_value: SoundGroupBehavior) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SoundGroupBehavior
impl PartialEq for SoundGroupBehavior
Source§impl TryFrom<u32> for SoundGroupBehavior
impl TryFrom<u32> for SoundGroupBehavior
Source§type Error = TryFromPrimitiveError<SoundGroupBehavior>
type Error = TryFromPrimitiveError<SoundGroupBehavior>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SoundGroupBehavior
impl TryFromPrimitive for SoundGroupBehavior
const NAME: &'static str = "SoundGroupBehavior"
type Primitive = u32
type Error = TryFromPrimitiveError<SoundGroupBehavior>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl UnsafeFromPrimitive for SoundGroupBehavior
impl UnsafeFromPrimitive for SoundGroupBehavior
type Primitive = u32
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for SoundGroupBehavior
impl Eq for SoundGroupBehavior
impl StructuralPartialEq for SoundGroupBehavior
Auto Trait Implementations§
impl Freeze for SoundGroupBehavior
impl RefUnwindSafe for SoundGroupBehavior
impl Send for SoundGroupBehavior
impl Sync for SoundGroupBehavior
impl Unpin for SoundGroupBehavior
impl UnwindSafe for SoundGroupBehavior
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