pub enum ImuError {
DeviceError(String),
ReadError(String),
WriteError(String),
ConfigurationError(String),
LockError(String),
CommandSendError(String),
NotSupported(String),
InvalidPacket(String),
Other(String),
}Variants§
DeviceError(String)
Error originating from the underlying device communication (I2C, Serial, CAN)
ReadError(String)
Error reading data from the device or internal state
WriteError(String)
Error writing commands or configuration to the device
ConfigurationError(String)
Error during device configuration or setup
LockError(String)
Error related to multithreading locks (e.g., poisoned)
CommandSendError(String)
Error sending a command to the reader thread
NotSupported(String)
Functionality not supported by this specific IMU implementation
InvalidPacket(String)
Invalid packet received from the device
Other(String)
Catch-all for other errors
Trait Implementations§
Source§impl Error for ImuError
impl Error for ImuError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<T> From<PoisonError<T>> for ImuError
impl<T> From<PoisonError<T>> for ImuError
Source§fn from(err: PoisonError<T>) -> Self
fn from(err: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImuError
impl RefUnwindSafe for ImuError
impl Send for ImuError
impl Sync for ImuError
impl Unpin for ImuError
impl UnwindSafe for ImuError
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