pub struct AudioSink<'a, Chan: Channel, const CH: usize> { /* private fields */ }Expand description
Returned from Audio::sink().
Trait Implementations§
Source§impl<Chan: Channel, const CH: usize> Sink<Chan, CH> for &mut AudioSink<'_, Chan, CH>
impl<Chan: Channel, const CH: usize> Sink<Chan, CH> for &mut AudioSink<'_, Chan, CH>
Source§fn sample_rate(&self) -> NonZeroU32
fn sample_rate(&self) -> NonZeroU32
Get the sample rate of the sink in hertz.
Source§impl<'a, Chan: Channel, const CH: usize> Sink<Chan, CH> for AudioSink<'a, Chan, CH>
impl<'a, Chan: Channel, const CH: usize> Sink<Chan, CH> for AudioSink<'a, Chan, CH>
Source§fn sample_rate(&self) -> NonZeroU32
fn sample_rate(&self) -> NonZeroU32
Get the sample rate of the sink in hertz.
Auto Trait Implementations§
impl<'a, Chan, const CH: usize> Freeze for AudioSink<'a, Chan, CH>
impl<'a, Chan, const CH: usize> RefUnwindSafe for AudioSink<'a, Chan, CH>where
Chan: RefUnwindSafe,
impl<'a, Chan, const CH: usize> Send for AudioSink<'a, Chan, CH>where
Chan: Send,
impl<'a, Chan, const CH: usize> Sync for AudioSink<'a, Chan, CH>where
Chan: Sync,
impl<'a, Chan, const CH: usize> Unpin for AudioSink<'a, Chan, CH>
impl<'a, Chan, const CH: usize> UnsafeUnpin for AudioSink<'a, Chan, CH>
impl<'a, Chan, const CH: usize> !UnwindSafe for AudioSink<'a, Chan, CH>
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