pub struct DeviceSinkConfig { /* private fields */ }Expand description
Describes the OS-Sink’s configuration
Implementations§
Source§impl DeviceSinkConfig
impl DeviceSinkConfig
Sourcepub fn channel_count(&self) -> ChannelCount
pub fn channel_count(&self) -> ChannelCount
Access the OS-Sink config’s channel count.
Sourcepub fn sample_rate(&self) -> SampleRate
pub fn sample_rate(&self) -> SampleRate
Access the OS-Sink config’s sample rate.
Sourcepub fn buffer_size(&self) -> &BufferSize
pub fn buffer_size(&self) -> &BufferSize
Access the OS-Sink config’s buffer size.
Sourcepub fn sample_format(&self) -> SampleFormat
pub fn sample_format(&self) -> SampleFormat
Access the OS-Sink config’s sample format.
Trait Implementations§
Source§impl Clone for DeviceSinkConfig
impl Clone for DeviceSinkConfig
Source§fn clone(&self) -> DeviceSinkConfig
fn clone(&self) -> DeviceSinkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceSinkConfig
impl Debug for DeviceSinkConfig
Source§impl Default for DeviceSinkConfig
impl Default for DeviceSinkConfig
Source§impl From<&DeviceSinkConfig> for StreamConfig
impl From<&DeviceSinkConfig> for StreamConfig
Source§fn from(config: &DeviceSinkConfig) -> Self
fn from(config: &DeviceSinkConfig) -> Self
Converts to this type from the input type.
impl Copy for DeviceSinkConfig
Auto Trait Implementations§
impl Freeze for DeviceSinkConfig
impl RefUnwindSafe for DeviceSinkConfig
impl Send for DeviceSinkConfig
impl Sync for DeviceSinkConfig
impl Unpin for DeviceSinkConfig
impl UnsafeUnpin for DeviceSinkConfig
impl UnwindSafe for DeviceSinkConfig
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