Struct rich_sdl2_rust::audio::spec::AudioSpec
source · pub struct AudioSpec<'callback, T> { /* private fields */ }
Expand description
A specification to require what an audio device is.
Implementations§
source§impl<'callback, T: AudioCallback<'callback>> AudioSpec<'callback, T>
impl<'callback, T: AudioCallback<'callback>> AudioSpec<'callback, T>
sourcepub fn new(builder: AudioSpecBuilder<'callback, T>) -> Self
pub fn new(builder: AudioSpecBuilder<'callback, T>) -> Self
Constructs an audio specification with the optional callback.
Trait Implementations§
Auto Trait Implementations§
impl<'callback, T> RefUnwindSafe for AudioSpec<'callback, T>where
T: RefUnwindSafe,
impl<'callback, T> !Send for AudioSpec<'callback, T>
impl<'callback, T> !Sync for AudioSpec<'callback, T>
impl<'callback, T> Unpin for AudioSpec<'callback, T>
impl<'callback, T> !UnwindSafe for AudioSpec<'callback, T>
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