#[repr(i32)]pub enum SamplingRate {
F8k = 8_000,
F12k = 12_000,
F16k = 16_000,
F24k = 24_000,
F48k = 48_000,
}Expand description
Sampling rate.
Only valid sampling rates can be presented.
Variants§
F8k = 8_000
8 kHz sampling rate.
F12k = 12_000
12 kHz sampling rate.
F16k = 16_000
16 kHz sampling rate.
F24k = 24_000
24 kHz sampling rate.
F48k = 48_000
48 kHz sampling rate.
Implementations§
Trait Implementations§
Source§impl Clone for SamplingRate
impl Clone for SamplingRate
Source§fn clone(&self) -> SamplingRate
fn clone(&self) -> SamplingRate
Returns a duplicate 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 SamplingRate
impl Debug for SamplingRate
Source§impl From<SamplingRate> for i32
impl From<SamplingRate> for i32
Source§fn from(enum_value: SamplingRate) -> Self
fn from(enum_value: SamplingRate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SamplingRate
impl PartialEq for SamplingRate
Source§impl TryFrom<i32> for SamplingRate
impl TryFrom<i32> for SamplingRate
Source§type Error = TryFromPrimitiveError<SamplingRate>
type Error = TryFromPrimitiveError<SamplingRate>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SamplingRate
impl TryFromPrimitive for SamplingRate
const NAME: &'static str = "SamplingRate"
type Primitive = i32
type Error = TryFromPrimitiveError<SamplingRate>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for SamplingRate
impl Eq for SamplingRate
impl StructuralPartialEq for SamplingRate
Auto Trait Implementations§
impl Freeze for SamplingRate
impl RefUnwindSafe for SamplingRate
impl Send for SamplingRate
impl Sync for SamplingRate
impl Unpin for SamplingRate
impl UnwindSafe for SamplingRate
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.