pub enum AudioRepetition {
Forever,
Count(NonZero<u32>),
}Expand description
Specifies the number of times a sound/music file should be played.
Variants§
Forever
The file should be played infinitely, until instructed otherwise.
Count(NonZero<u32>)
The file should play this many times.
Trait Implementations§
Source§impl Clone for AudioRepetition
impl Clone for AudioRepetition
Source§fn clone(&self) -> AudioRepetition
fn clone(&self) -> AudioRepetition
Returns a duplicate 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 AudioRepetition
impl Debug for AudioRepetition
Source§impl Default for AudioRepetition
impl Default for AudioRepetition
Source§impl Display for AudioRepetition
impl Display for AudioRepetition
Source§impl FromStr for AudioRepetition
impl FromStr for AudioRepetition
Source§impl PartialEq for AudioRepetition
impl PartialEq for AudioRepetition
impl Copy for AudioRepetition
impl Eq for AudioRepetition
impl StructuralPartialEq for AudioRepetition
Auto Trait Implementations§
impl Freeze for AudioRepetition
impl RefUnwindSafe for AudioRepetition
impl Send for AudioRepetition
impl Sync for AudioRepetition
impl Unpin for AudioRepetition
impl UnsafeUnpin for AudioRepetition
impl UnwindSafe for AudioRepetition
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