#[non_exhaustive]#[repr(u8)]pub enum PairingError {
DeviceTimeout = 1,
Failed = 2,
Other(u8),
}Expand description
Represents an error during device pairing.
This is reported by the Event::PairingStatus event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DeviceTimeout = 1
Device timed out during pairing.
Failed = 2
Pairing failed.
Other(u8)
An error code this crate does not model; carries the raw byte.
Trait Implementations§
Source§impl Clone for PairingError
impl Clone for PairingError
Source§fn clone(&self) -> PairingError
fn clone(&self) -> PairingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PairingError
Source§impl Debug for PairingError
impl Debug for PairingError
impl Eq for PairingError
Source§impl From<PairingError> for u8
impl From<PairingError> for u8
Source§fn from(enum_value: PairingError) -> Self
fn from(enum_value: PairingError) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PairingError
impl From<u8> for PairingError
Source§impl FromPrimitive for PairingError
impl FromPrimitive for PairingError
Source§impl Hash for PairingError
impl Hash for PairingError
Source§impl PartialEq for PairingError
impl PartialEq for PairingError
impl StructuralPartialEq for PairingError
Auto Trait Implementations§
impl Freeze for PairingError
impl RefUnwindSafe for PairingError
impl Send for PairingError
impl Sync for PairingError
impl Unpin for PairingError
impl UnsafeUnpin for PairingError
impl UnwindSafe for PairingError
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