Struct cpal::Format[][src]

pub struct Format {
    pub channels: ChannelCount,
    pub sample_rate: SampleRate,
    pub data_type: SampleFormat,
}

The format of an input or output audio stream.

Fields

Trait Implementations

impl Debug for Format
[src]

Formats the value using the given formatter. Read more

impl Clone for Format
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Format
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Format
[src]

impl From<Format> for SupportedFormat
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Format

impl Sync for Format