#[repr(u32)]pub enum ErrorFlagsForSensor {
Show 17 variants
None = 0,
MotionNoAnswer = 1,
MotionWrongValue = 2,
MotionNotCalibrated = 4,
MotionCalibrating = 8,
PressureNoAnswer = 16,
PressureWrongValue = 32,
RangeGroundNoAnswer = 256,
RangeGroundWrongValue = 512,
RangeFrontNoAnswer = 1_024,
RangeFrontWrongValue = 2_048,
FlowNoAnswer = 4_096,
FlowWrongValue = 8_192,
FlowCannotRecognizeGroundImage = 16_384,
RfNoAnswer = 268_435_456,
RfPaired = 536_870_912,
RfConnected = 1_073_741_824,
}Variants§
None = 0
MotionNoAnswer = 1
MotionWrongValue = 2
MotionNotCalibrated = 4
MotionCalibrating = 8
PressureNoAnswer = 16
PressureWrongValue = 32
RangeGroundNoAnswer = 256
RangeGroundWrongValue = 512
RangeFrontNoAnswer = 1_024
RangeFrontWrongValue = 2_048
FlowNoAnswer = 4_096
FlowWrongValue = 8_192
FlowCannotRecognizeGroundImage = 16_384
RfNoAnswer = 268_435_456
RfPaired = 536_870_912
RfConnected = 1_073_741_824
Implementations§
Source§impl ErrorFlagsForSensor
impl ErrorFlagsForSensor
pub fn from_u8(data_u32: u32) -> ErrorFlagsForSensor
Trait Implementations§
Source§impl Clone for ErrorFlagsForSensor
impl Clone for ErrorFlagsForSensor
Source§fn clone(&self) -> ErrorFlagsForSensor
fn clone(&self) -> ErrorFlagsForSensor
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 ErrorFlagsForSensor
impl Debug for ErrorFlagsForSensor
Source§impl From<ErrorFlagsForSensor> for u32
impl From<ErrorFlagsForSensor> for u32
Source§fn from(enum_value: ErrorFlagsForSensor) -> Self
fn from(enum_value: ErrorFlagsForSensor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ErrorFlagsForSensor
impl PartialEq for ErrorFlagsForSensor
Source§impl TryFrom<u32> for ErrorFlagsForSensor
impl TryFrom<u32> for ErrorFlagsForSensor
Source§type Error = TryFromPrimitiveError<ErrorFlagsForSensor>
type Error = TryFromPrimitiveError<ErrorFlagsForSensor>
The type returned in the event of a conversion error.
impl Copy for ErrorFlagsForSensor
impl Eq for ErrorFlagsForSensor
impl StructuralPartialEq for ErrorFlagsForSensor
Auto Trait Implementations§
impl Freeze for ErrorFlagsForSensor
impl RefUnwindSafe for ErrorFlagsForSensor
impl Send for ErrorFlagsForSensor
impl Sync for ErrorFlagsForSensor
impl Unpin for ErrorFlagsForSensor
impl UnwindSafe for ErrorFlagsForSensor
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