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
channels: Vec<ChannelPosition>
min_samples_rate: SamplesRate
Minimum value for the samples rate of the supported formats.
max_samples_rate: SamplesRate
Maximum value for the samples rate of the supported formats.
data_type: SampleFormat
Type of data expected by the endpoint.
Methods
impl SupportedFormat
[src]
fn with_max_samples_rate(self) -> Format
[src]
Turns this SupportedFormat
into a Format
corresponding to the maximum samples rate.
Trait Implementations
impl Debug for SupportedFormat
[src]
impl Clone for SupportedFormat
[src]
fn clone(&self) -> SupportedFormat
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for SupportedFormat
[src]
fn eq(&self, __arg_0: &SupportedFormat) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SupportedFormat) -> bool
[src]
This method tests for !=
.
impl Eq for SupportedFormat
[src]
impl From<Format> for SupportedFormat
[src]
fn from(format: Format) -> SupportedFormat
[src]
Performs the conversion.