pub enum PairError {
Client(ClientError),
Pairing(PairingError),
Expired,
Unavailable,
WrongCode,
Declined,
BadAnswer(&'static str),
}Expand description
What can go wrong pairing a device.
Variants§
Client(ClientError)
Pairing(PairingError)
Expired
WrongCode
The joiner’s message didn’t open: they used a different code (or someone guessed). The pairing has been cancelled.
Declined
BadAnswer(&'static str)
Trait Implementations§
Source§impl Error for PairError
impl Error for PairError
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<ClientError> for PairError
impl From<ClientError> for PairError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<PairingError> for PairError
impl From<PairingError> for PairError
Source§fn from(source: PairingError) -> Self
fn from(source: PairingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PairError
impl !RefUnwindSafe for PairError
impl Send for PairError
impl Sync for PairError
impl Unpin for PairError
impl UnsafeUnpin for PairError
impl !UnwindSafe for PairError
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