pub enum Error {
Connection(String),
Serial(Error),
Io(Error),
Protocol(String),
Timeout(String),
Device(String),
InvalidParameter(String),
Disabled(String),
NotConnected,
Ble(Error),
Channel(String),
}Expand description
The main error type for MeshCore operations
Variants§
Connection(String)
Connection-related errors
Serial(Error)
Serial port errors
Io(Error)
I/O errors
Protocol(String)
Protocol errors (malformed packets, unexpected responses)
Timeout(String)
Timeout waiting for response
Device(String)
Device returned an error
InvalidParameter(String)
Invalid parameter provided
Disabled(String)
Feature is disabled on device
NotConnected
Not connected to a device
Ble(Error)
BLE-specific errors
Channel(String)
Channel send error
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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