Struct cpal::StreamConfig[][src]

pub struct StreamConfig {
    pub channels: ChannelCount,
    pub sample_rate: SampleRate,
    pub buffer_size: BufferSize,
}

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: ChannelCountsample_rate: SampleRatebuffer_size: BufferSize

Trait Implementations

impl Clone for StreamConfig[src]

impl Debug for StreamConfig[src]

impl Eq for StreamConfig[src]

impl From<SupportedStreamConfig> for StreamConfig[src]

impl PartialEq<StreamConfig> for StreamConfig[src]

impl StructuralEq for StreamConfig[src]

impl StructuralPartialEq for StreamConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.