pub enum InertialSensorError {
PortOutOfRange,
PortNotInertialSensor,
SensorAlreadyCalibrating,
UnknownStatusCode(u32),
Unknown(i32),
}Expand description
Represents possible errors for inertial sensor operations.
Variants§
PortOutOfRange
Port is out of range (1-21).
PortNotInertialSensor
Port cannot be configured as a inertial sensor.
SensorAlreadyCalibrating
The sensor is already calibrating.
UnknownStatusCode(u32)
The sensor returned an unknown status code.
Unknown(i32)
Unknown error.
Trait Implementations§
Source§impl Debug for InertialSensorError
impl Debug for InertialSensorError
Source§impl From<InertialSensorError> for Error
impl From<InertialSensorError> for Error
Source§fn from(err: InertialSensorError) -> Self
fn from(err: InertialSensorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InertialSensorError
impl RefUnwindSafe for InertialSensorError
impl Send for InertialSensorError
impl Sync for InertialSensorError
impl Unpin for InertialSensorError
impl UnwindSafe for InertialSensorError
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