Struct gonk_player::SupportedStreamConfig
source · [−]pub struct SupportedStreamConfig { /* private fields */ }Expand description
Describes a single supported stream configuration, retrieved via either a
SupportedStreamConfigRange instance or one of the Device::default_input/output_config methods.
Implementations
sourceimpl SupportedStreamConfig
impl SupportedStreamConfig
pub fn channels(&self) -> u16
pub fn sample_rate(&self) -> SampleRate
pub fn buffer_size(&self) -> &SupportedBufferSize
pub fn sample_format(&self) -> SampleFormat
pub fn config(&self) -> StreamConfig
Trait Implementations
sourceimpl Clone for SupportedStreamConfig
impl Clone for SupportedStreamConfig
sourcefn clone(&self) -> SupportedStreamConfig
fn clone(&self) -> SupportedStreamConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SupportedStreamConfig
impl Debug for SupportedStreamConfig
sourceimpl PartialEq<SupportedStreamConfig> for SupportedStreamConfig
impl PartialEq<SupportedStreamConfig> for SupportedStreamConfig
sourcefn eq(&self, other: &SupportedStreamConfig) -> bool
fn eq(&self, other: &SupportedStreamConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SupportedStreamConfig) -> bool
fn ne(&self, other: &SupportedStreamConfig) -> bool
This method tests for !=.
impl Eq for SupportedStreamConfig
impl StructuralEq for SupportedStreamConfig
impl StructuralPartialEq for SupportedStreamConfig
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
impl<F, T> IntoSample<T> for F where
T: FromSample<F>,
fn into_sample(self) -> T
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more