pub enum LedgerBleError {
DeviceNotFound,
Comm(&'static str),
InvalidPacket,
Io(Error),
UTF8(Utf8Error),
Ble(Error),
Poison(PoisonError<MutexGuard<'static, Peripheral>>),
}
Variants§
DeviceNotFound
Device not found error
Comm(&'static str)
Communication error
InvalidPacket
Communication error
Io(Error)
i/o error
UTF8(Utf8Error)
UT8F error
Ble(Error)
UT8F error
Poison(PoisonError<MutexGuard<'static, Peripheral>>)
Poison error
Trait Implementations§
Source§impl Debug for LedgerBleError
impl Debug for LedgerBleError
Source§impl Display for LedgerBleError
impl Display for LedgerBleError
Source§impl Error for LedgerBleError
impl Error for LedgerBleError
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<Error> for LedgerBleError
impl From<Error> for LedgerBleError
Source§impl From<Error> for LedgerBleError
impl From<Error> for LedgerBleError
Source§impl From<PoisonError<MutexGuard<'static, Peripheral>>> for LedgerBleError
impl From<PoisonError<MutexGuard<'static, Peripheral>>> for LedgerBleError
Source§fn from(source: PoisonError<MutexGuard<'static, Peripheral>>) -> Self
fn from(source: PoisonError<MutexGuard<'static, Peripheral>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LedgerBleError
impl !RefUnwindSafe for LedgerBleError
impl !Send for LedgerBleError
impl Sync for LedgerBleError
impl Unpin for LedgerBleError
impl !UnwindSafe for LedgerBleError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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