pub enum ExactSampleRate {
_8000,
_10582,
_12500,
_15625,
_15873,
_25000,
_31250,
_50000,
_62500,
_100000,
_125000,
}Expand description
Exact sample rates.
Those are non standard sample rates that can be configured without error.
For custom master clock configuration, please refer to [vals::Mode].
Variants§
_8000
8000 Hz
_10582
10582 Hz
_12500
12500 Hz
_15625
15625 Hz
_15873
15873 Hz
_25000
25000 Hz
_31250
31250 Hz
_50000
50000 Hz
_62500
62500 Hz
_100000
100000 Hz
_125000
125000 Hz
Implementations§
Source§impl ExactSampleRate
impl ExactSampleRate
Sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
Get the sample rate as an integer.
Trait Implementations§
Source§impl Clone for ExactSampleRate
impl Clone for ExactSampleRate
Source§fn clone(&self) -> ExactSampleRate
fn clone(&self) -> ExactSampleRate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExactSampleRate
Source§impl From<ExactSampleRate> for MasterClock
impl From<ExactSampleRate> for MasterClock
Source§fn from(value: ExactSampleRate) -> Self
fn from(value: ExactSampleRate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExactSampleRate
impl RefUnwindSafe for ExactSampleRate
impl Send for ExactSampleRate
impl Sync for ExactSampleRate
impl Unpin for ExactSampleRate
impl UnsafeUnpin for ExactSampleRate
impl UnwindSafe for ExactSampleRate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more