#[repr(i32)]pub enum SampleRate {
Hz8000 = 8_000,
Hz12000 = 12_000,
Hz16000 = 16_000,
Hz24000 = 24_000,
Hz48000 = 48_000,
}
Expand description
Represents possible sample rates Opus can use. Values represent Hertz.
Variants§
Trait Implementations§
Source§impl Clone for SampleRate
impl Clone for SampleRate
Source§fn clone(&self) -> SampleRate
fn clone(&self) -> SampleRate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SampleRate
impl Debug for SampleRate
Source§impl Hash for SampleRate
impl Hash for SampleRate
Source§impl PartialEq for SampleRate
impl PartialEq for SampleRate
Source§impl TryFrom<i32> for SampleRate
impl TryFrom<i32> for SampleRate
impl Copy for SampleRate
impl Eq for SampleRate
impl StructuralPartialEq for SampleRate
Auto Trait Implementations§
impl Freeze for SampleRate
impl RefUnwindSafe for SampleRate
impl Send for SampleRate
impl Sync for SampleRate
impl Unpin for SampleRate
impl UnwindSafe for SampleRate
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