pub struct SinkConfig {
pub sample_rate: u32,
pub channels: u16,
pub buffer_frames: Option<u32>,
}Expand description
What a sink is asked for, and what a running one reports.
Fields§
§sample_rate: u32§channels: u16§buffer_frames: Option<u32>A preferred buffer size in frames. None lets the backend choose. The running stream may differ.
Implementations§
Source§impl SinkConfig
impl SinkConfig
Trait Implementations§
Source§impl Clone for SinkConfig
impl Clone for SinkConfig
impl Copy for SinkConfig
Source§impl Debug for SinkConfig
impl Debug for SinkConfig
impl Eq for SinkConfig
Source§impl PartialEq for SinkConfig
impl PartialEq for SinkConfig
impl StructuralPartialEq for SinkConfig
Auto Trait Implementations§
impl Forget for SinkConfig
impl Freeze for SinkConfig
impl Move for SinkConfig
impl RefUnwindSafe for SinkConfig
impl Send for SinkConfig
impl Sync for SinkConfig
impl Unpin for SinkConfig
impl UnsafeUnpin for SinkConfig
impl UnwindSafe for SinkConfig
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