Struct rich_sdl2_rust::mixer::chunk::channel::PlayOptions
source · pub struct PlayOptions {
pub loops: PlayLoops,
pub duration: Option<u32>,
}
Expand description
Options to play a chunk by Channel::play
.
Fields§
§loops: PlayLoops
Loops on playing.
duration: Option<u32>
The maximum duration of playing in milliseconds. Stopping by loops
is prior to by duration
.
Trait Implementations§
source§impl Clone for PlayOptions
impl Clone for PlayOptions
source§fn clone(&self) -> PlayOptions
fn clone(&self) -> PlayOptions
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 PlayOptions
impl Debug for PlayOptions
source§impl Default for PlayOptions
impl Default for PlayOptions
source§fn default() -> PlayOptions
fn default() -> PlayOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for PlayOptions
impl PartialEq for PlayOptions
source§fn eq(&self, other: &PlayOptions) -> bool
fn eq(&self, other: &PlayOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PlayOptions
impl Eq for PlayOptions
impl StructuralPartialEq for PlayOptions
Auto Trait Implementations§
impl RefUnwindSafe for PlayOptions
impl Send for PlayOptions
impl Sync for PlayOptions
impl Unpin for PlayOptions
impl UnwindSafe for PlayOptions
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