pub enum Sink {
Discard,
Device {
name: Option<String>,
first_channel: u16,
},
Shared(SharedBuffer),
}Expand description
Where a listener’s samples go.
Variants§
Discard
Nowhere, though their level is still measured.
Device
An audio output, by name or the default one, the stream’s channels
played on its channel first_channel on.
A buffer another part of the program drains as a device would, such as a virtual audio device apps record from.
Trait Implementations§
impl StructuralPartialEq for Sink
Auto Trait Implementations§
impl !RefUnwindSafe for Sink
impl !UnwindSafe for Sink
impl Forget for Sink
impl Freeze for Sink
impl Send for Sink
impl Sync for Sink
impl Unpin for Sink
impl UnsafeUnpin for Sink
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