pub enum BluetoothError {
IoError(Error),
DecodeError(DecodeError),
Timeout,
Nack(Cdc2Ack),
Btleplug(Error),
NoResponse,
NoBluetoothAdapter,
MissingCharacteristic,
IncorrectPin,
PairingRequired,
FixedStringSizeError(FixedStringSizeError),
}
Variants§
IoError(Error)
DecodeError(DecodeError)
Timeout
Nack(Cdc2Ack)
Btleplug(Error)
NoResponse
NoBluetoothAdapter
MissingCharacteristic
IncorrectPin
PairingRequired
FixedStringSizeError(FixedStringSizeError)
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()
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 BluetoothError
impl From<Cdc2Ack> for BluetoothError
Source§impl From<DecodeError> for BluetoothError
impl From<DecodeError> for BluetoothError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BluetoothError
impl From<Error> for BluetoothError
Source§impl From<Error> for BluetoothError
impl From<Error> for BluetoothError
Source§impl From<FixedStringSizeError> for BluetoothError
impl From<FixedStringSizeError> for BluetoothError
Source§fn from(source: FixedStringSizeError) -> Self
fn from(source: FixedStringSizeError) -> Self
Converts to this type from the input type.
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