Struct cpal::SupportedFormat [] [src]

pub struct SupportedFormat {
    pub channels: Vec<ChannelPosition>,
    pub min_samples_rate: SamplesRate,
    pub max_samples_rate: SamplesRate,
    pub data_type: SampleFormat,
}

Describes a range of supported formats.

Fields

Minimum value for the samples rate of the supported formats.

Maximum value for the samples rate of the supported formats.

Type of data expected by the endpoint.

Methods

impl SupportedFormat
[src]

[src]

Turns this SupportedFormat into a Format corresponding to the maximum samples rate.

Trait Implementations

impl Debug for SupportedFormat
[src]

[src]

Formats the value using the given formatter.

impl Clone for SupportedFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for SupportedFormat
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for SupportedFormat
[src]

impl From<Format> for SupportedFormat
[src]

[src]

Performs the conversion.