pub enum GenericError {
SerialError(SerialError),
BluetoothError(BluetoothError),
DecodeError(DecodeError),
Nack(Cdc2Ack),
PairingNotSupported,
FixedStringSizeError(FixedStringSizeError),
}
Variants§
SerialError(SerialError)
BluetoothError(BluetoothError)
DecodeError(DecodeError)
Nack(Cdc2Ack)
PairingNotSupported
FixedStringSizeError(FixedStringSizeError)
Trait Implementations§
Source§impl Debug for GenericError
impl Debug for GenericError
Source§impl Display for GenericError
impl Display for GenericError
Source§impl Error for GenericError
impl Error for GenericError
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 From<BluetoothError> for GenericError
impl From<BluetoothError> for GenericError
Source§fn from(source: BluetoothError) -> Self
fn from(source: BluetoothError) -> Self
Converts to this type from the input type.
Source§impl From<Cdc2Ack> for GenericError
impl From<Cdc2Ack> for GenericError
Source§impl From<DecodeError> for GenericError
impl From<DecodeError> for GenericError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FixedStringSizeError> for GenericError
impl From<FixedStringSizeError> for GenericError
Source§fn from(source: FixedStringSizeError) -> Self
fn from(source: FixedStringSizeError) -> Self
Converts to this type from the input type.
Source§impl From<SerialError> for GenericError
impl From<SerialError> for GenericError
Source§fn from(source: SerialError) -> Self
fn from(source: SerialError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenericError
impl !RefUnwindSafe for GenericError
impl Send for GenericError
impl Sync for GenericError
impl Unpin for GenericError
impl !UnwindSafe for GenericError
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