#[repr(u8)]pub enum SampleRate {
Sps2 = 0,
Sps10 = 1,
Sps50 = 2,
Sps1000 = 3,
Sps10000 = 4,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SampleRate
impl Clone for SampleRate
impl Copy for SampleRate
Source§impl Debug for SampleRate
impl Debug for SampleRate
Source§impl Default for SampleRate
impl Default for SampleRate
Source§impl Display for SampleRate
impl Display for SampleRate
impl Eq for SampleRate
Source§impl From<SampleRate> for u8
impl From<SampleRate> for u8
Source§fn from(enum_value: SampleRate) -> Self
fn from(enum_value: SampleRate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SampleRate
impl PartialEq for SampleRate
impl StructuralPartialEq for SampleRate
Source§impl TryFrom<u8> for SampleRate
impl TryFrom<u8> for SampleRate
Source§type Error = TryFromPrimitiveError<SampleRate>
type Error = TryFromPrimitiveError<SampleRate>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SampleRate
impl TryFromPrimitive for SampleRate
const NAME: &'static str = "SampleRate"
type Primitive = u8
type Error = TryFromPrimitiveError<SampleRate>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for SampleRate
impl RefUnwindSafe for SampleRate
impl Send for SampleRate
impl Sync for SampleRate
impl Unpin for SampleRate
impl UnsafeUnpin 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