Struct rich_sdl2_rust::audio::spec::AudioSpecBuilder
source · pub struct AudioSpecBuilder<'callback, T: AudioCallback<'callback>> { /* private fields */ }
Expand description
A builder to build an information representing what specification is required for an audio device.
Implementations§
source§impl<'callback, T: AudioCallback<'callback>> AudioSpecBuilder<'callback, T>
impl<'callback, T: AudioCallback<'callback>> AudioSpecBuilder<'callback, T>
sourcepub fn builder() -> AudioSpecBuilderBuilder<'callback, T, ((), (), (), (), ())>
pub fn builder() -> AudioSpecBuilderBuilder<'callback, T, ((), (), (), (), ())>
Create a builder for building AudioSpecBuilder
.
On the builder, call .sample_freq(...)
(optional), .format(...)
(optional), .channels(...)
(optional), .samples(...)
(optional), .callback(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of AudioSpecBuilder
.
Auto Trait Implementations§
impl<'callback, T> RefUnwindSafe for AudioSpecBuilder<'callback, T>where
T: RefUnwindSafe,
impl<'callback, T> Send for AudioSpecBuilder<'callback, T>where
T: Send,
impl<'callback, T> Sync for AudioSpecBuilder<'callback, T>where
T: Sync,
impl<'callback, T> Unpin for AudioSpecBuilder<'callback, T>
impl<'callback, T> !UnwindSafe for AudioSpecBuilder<'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