pub struct OutputStreamConfig { /* private fields */ }
Expand description
Describes the output stream’s configuration
Implementations§
Source§impl OutputStreamConfig
impl OutputStreamConfig
Sourcepub fn channel_count(&self) -> ChannelCount
pub fn channel_count(&self) -> ChannelCount
Access the output stream config’s channel count.
Sourcepub fn sample_rate(&self) -> SampleRate
pub fn sample_rate(&self) -> SampleRate
Access the output stream config’s sample rate.
Sourcepub fn buffer_size(&self) -> &BufferSize
pub fn buffer_size(&self) -> &BufferSize
Access the output stream config’s buffer size.
Sourcepub fn sample_format(&self) -> SampleFormat
pub fn sample_format(&self) -> SampleFormat
Access the output stream config’s sample format.
Trait Implementations§
Source§impl Clone for OutputStreamConfig
impl Clone for OutputStreamConfig
Source§fn clone(&self) -> OutputStreamConfig
fn clone(&self) -> OutputStreamConfig
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 OutputStreamConfig
impl Debug for OutputStreamConfig
Source§impl Default for OutputStreamConfig
impl Default for OutputStreamConfig
Source§impl From<&OutputStreamConfig> for StreamConfig
impl From<&OutputStreamConfig> for StreamConfig
Source§fn from(config: &OutputStreamConfig) -> Self
fn from(config: &OutputStreamConfig) -> Self
Converts to this type from the input type.
impl Copy for OutputStreamConfig
Auto Trait Implementations§
impl Freeze for OutputStreamConfig
impl RefUnwindSafe for OutputStreamConfig
impl Send for OutputStreamConfig
impl Sync for OutputStreamConfig
impl Unpin for OutputStreamConfig
impl UnwindSafe for OutputStreamConfig
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