Enum lis3dh_async::DataRate
source · #[repr(u8)]
pub enum DataRate {
Hz_400,
Hz_200,
Hz_100,
Hz_50,
Hz_25,
Hz_10,
Hz_1,
PowerDown,
}
Expand description
Output data rate.
Variants
Hz_400
400Hz (Default)
Hz_200
200Hz
Hz_100
100Hz
Hz_50
50Hz
Hz_25
25Hz
Hz_10
10Hz
Hz_1
1Hz
PowerDown
Power down
Implementations
Trait Implementations
sourceimpl TryFrom<u8> for DataRate
impl TryFrom<u8> for DataRate
type Error = TryFromPrimitiveError<DataRate>
type Error = TryFromPrimitiveError<DataRate>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for DataRate
impl TryFromPrimitive for DataRate
type Primitive = u8
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DataRate
impl Eq for DataRate
impl StructuralEq for DataRate
impl StructuralPartialEq for DataRate
Auto Trait Implementations
impl RefUnwindSafe for DataRate
impl Send for DataRate
impl Sync for DataRate
impl Unpin for DataRate
impl UnwindSafe for DataRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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