pub struct AudioClassBuilder<'a> { /* private fields */ }Expand description
Builder class to create an AudioClass structure.
Implementations§
Source§impl<'a> AudioClassBuilder<'a>
impl<'a> AudioClassBuilder<'a>
Sourcepub fn new() -> AudioClassBuilder<'static>
pub fn new() -> AudioClassBuilder<'static>
Create a new AudioClassBuilder
Sourcepub fn input(self, input: StreamConfig<'a>) -> AudioClassBuilder<'a>
pub fn input(self, input: StreamConfig<'a>) -> AudioClassBuilder<'a>
Configure the input audio stream according to a StreamConfig.
At most one input stream can be configured. When calling this method
multiple times, the last call matters.
Sourcepub fn output(self, output: StreamConfig<'a>) -> AudioClassBuilder<'a>
pub fn output(self, output: StreamConfig<'a>) -> AudioClassBuilder<'a>
Configure the output audio stream according to a StreamConfig.
At most one output stream can be configured. When calling this method
multiple times, the last call matters.
Sourcepub fn build<B: UsbBus>(
self,
alloc: &'a UsbBusAllocator<B>,
) -> Result<AudioClass<'a, B>, Error>
pub fn build<B: UsbBus>( self, alloc: &'a UsbBusAllocator<B>, ) -> Result<AudioClass<'a, B>, Error>
Create the AudioClass structure
Auto Trait Implementations§
impl<'a> Freeze for AudioClassBuilder<'a>
impl<'a> RefUnwindSafe for AudioClassBuilder<'a>
impl<'a> Send for AudioClassBuilder<'a>
impl<'a> Sync for AudioClassBuilder<'a>
impl<'a> Unpin for AudioClassBuilder<'a>
impl<'a> UnwindSafe for AudioClassBuilder<'a>
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