Struct cpal::StreamConfig
source · pub struct StreamConfig {
pub channels: ChannelCount,
pub sample_rate: SampleRate,
pub buffer_size: BufferSize,
}
Expand description
The set of parameters used to describe how to open a stream.
The sample format is omitted in favour of using a sample type.
Fields§
§channels: ChannelCount
§sample_rate: SampleRate
§buffer_size: BufferSize
Trait Implementations§
source§impl Clone for StreamConfig
impl Clone for StreamConfig
source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
Returns a copy 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 StreamConfig
impl Debug for StreamConfig
source§impl From<SupportedStreamConfig> for StreamConfig
impl From<SupportedStreamConfig> for StreamConfig
source§fn from(conf: SupportedStreamConfig) -> Self
fn from(conf: SupportedStreamConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq for StreamConfig
impl PartialEq for StreamConfig
source§fn eq(&self, other: &StreamConfig) -> bool
fn eq(&self, other: &StreamConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StreamConfig
impl StructuralEq for StreamConfig
impl StructuralPartialEq for StreamConfig
Auto Trait Implementations§
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnwindSafe for StreamConfig
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