#[repr(u8)]pub enum IntFunctionConfig {
Inactive = 0,
Alarm = 1,
DataReady = 2,
Busy = 3,
EarlyMeasurementStart = 4,
}Variants§
Inactive = 0
Pin INT is inactive
Alarm = 1
Alarm threshold violation notification
DataReady = 2
Data ready notification
Busy = 3
Busy notification
EarlyMeasurementStart = 4
Early measurement start notification (only continuous mode)
Trait Implementations§
Source§impl Clone for IntFunctionConfig
impl Clone for IntFunctionConfig
Source§fn clone(&self) -> IntFunctionConfig
fn clone(&self) -> IntFunctionConfig
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 IntFunctionConfig
Source§impl Debug for IntFunctionConfig
impl Debug for IntFunctionConfig
Source§impl Format for IntFunctionConfig
impl Format for IntFunctionConfig
Source§impl From<IntFunctionConfig> for u8
impl From<IntFunctionConfig> for u8
Source§fn from(enum_value: IntFunctionConfig) -> Self
fn from(enum_value: IntFunctionConfig) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IntFunctionConfig
impl PartialEq for IntFunctionConfig
Source§fn eq(&self, other: &IntFunctionConfig) -> bool
fn eq(&self, other: &IntFunctionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntFunctionConfig
Source§impl TryFrom<u8> for IntFunctionConfig
impl TryFrom<u8> for IntFunctionConfig
Source§type Error = TryFromPrimitiveError<IntFunctionConfig>
type Error = TryFromPrimitiveError<IntFunctionConfig>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for IntFunctionConfig
impl TryFromPrimitive for IntFunctionConfig
const NAME: &'static str = "IntFunctionConfig"
type Primitive = u8
type Error = TryFromPrimitiveError<IntFunctionConfig>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for IntFunctionConfig
impl RefUnwindSafe for IntFunctionConfig
impl Send for IntFunctionConfig
impl Sync for IntFunctionConfig
impl Unpin for IntFunctionConfig
impl UnsafeUnpin for IntFunctionConfig
impl UnwindSafe for IntFunctionConfig
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