[−][src]Struct cpal::SupportedStreamConfig
Describes a single supported stream configuration, retrieved via either a
SupportedStreamConfigRange
instance or one of the Device::default_input/output_config
methods.
Implementations
impl SupportedStreamConfig
[src]
pub fn channels(&self) -> ChannelCount
[src]
pub fn sample_rate(&self) -> SampleRate
[src]
pub fn buffer_size(&self) -> &SupportedBufferSize
[src]
pub fn sample_format(&self) -> SampleFormat
[src]
pub fn config(&self) -> StreamConfig
[src]
Trait Implementations
impl Clone for SupportedStreamConfig
[src]
fn clone(&self) -> SupportedStreamConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SupportedStreamConfig
[src]
impl Eq for SupportedStreamConfig
[src]
impl From<SupportedStreamConfig> for StreamConfig
[src]
fn from(conf: SupportedStreamConfig) -> Self
[src]
impl PartialEq<SupportedStreamConfig> for SupportedStreamConfig
[src]
fn eq(&self, other: &SupportedStreamConfig) -> bool
[src]
fn ne(&self, other: &SupportedStreamConfig) -> bool
[src]
impl StructuralEq for SupportedStreamConfig
[src]
impl StructuralPartialEq for SupportedStreamConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for SupportedStreamConfig
impl Send for SupportedStreamConfig
impl Sync for SupportedStreamConfig
impl Unpin for SupportedStreamConfig
impl UnwindSafe for SupportedStreamConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,