pub enum BluetoothError {
InvalidBluetoothAdapter,
InvalidPeripheralReference,
InvalidPeriperipheralProperty,
NotFoundTargetCharacteristic,
InternalError(Error),
InvalidCharacteristic,
}Expand description
Errors related to BLE communication
Variants§
InvalidBluetoothAdapter
InvalidPeripheralReference
InvalidPeriperipheralProperty
NotFoundTargetCharacteristic
InternalError(Error)
InvalidCharacteristic
Trait Implementations§
Source§impl Debug for BluetoothError
impl Debug for BluetoothError
Source§impl Display for BluetoothError
impl Display for BluetoothError
Source§impl Error for BluetoothError
impl Error for BluetoothError
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 BluetoothError
impl !RefUnwindSafe for BluetoothError
impl Send for BluetoothError
impl Sync for BluetoothError
impl Unpin for BluetoothError
impl !UnwindSafe for BluetoothError
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