trouble-host

Crates

git

Versions

default

Flavors

PairingFailedReason

Enum PairingFailedReason 

Source
pub enum PairingFailedReason {
Show 17 variants Success, PasskeyEntryFailed, OobNotAvailable, AuthenticationRequirements, ConfirmValueFailed, PairingNotSupported, EncryptionKeySize, CommandNotSupported, UnspecifiedReason, RepeatedAttempts, InvalidParameters, DHKeyCheckFailed, NumericComparisonFailed, BrEdrPairingInProgress, GenerationNotAllowed, KeyRejected, Busy,
}
Expand description

Pairing Failed Reason

Variants§

§

Success

Pairing success

§

PasskeyEntryFailed

The user input of passkey failed, for example, the user cancelled the operation.

§

OobNotAvailable

The OOB data is not available.

§

AuthenticationRequirements

The pairing procedure cannot be performed as authentication requirements cannot be met due to IO capabilities of one or both devices.

§

ConfirmValueFailed

The confirm value does not match the calculated compare value.

§

PairingNotSupported

Pairing is not supported by the device.

§

EncryptionKeySize

The resultant encryption key size is not long enough for the security requirements of this device.

§

CommandNotSupported

The SMP command received is not supported on this device.

§

UnspecifiedReason

Pairing failed due to an unspecified reason.

§

RepeatedAttempts

Pairing or authentication procedure is disallowed because too little time has elapsed since last pairing request or security request.

§

InvalidParameters

The Invalid Parameters error code indicates that the command length is invalid or that a parameter is outside of the specified range.

§

DHKeyCheckFailed

Indicates to the remote device that the DHKey Check value received doesn’t match the one calculated by the local device.

§

NumericComparisonFailed

Indicates that the confirm values in the numeric comparison protocol do not match.

§

BrEdrPairingInProgress

Indicates that the pairing over the LE transport failed due to a Pairing Request sent over the BR/EDR transport in progress.

§

GenerationNotAllowed

Indicates that the BR/EDR Link Key generated on the BR/EDR transport cannot be used to derive and distribute keys for the LE transport or the LE LTK generated on the LE transport cannot be used to derive a key for the BR/EDR transport.

§

KeyRejected

Indicates that the device chose not to accept a distributed key.

§

Busy

Indicates that the device is not ready to perform a pairing procedure.

Trait Implementations§

Source§

impl AsRef<str> for Reason

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Reason

Source§

fn clone(&self) -> Reason

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Reason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Reason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Format for Reason

Available on crate feature defmt only.
Source§

fn format(&self, fmt: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl From<Reason> for u8

Source§

fn from(val: Reason) -> u8

Converts to this type from the input type.
Source§

impl PartialEq for Reason

Source§

fn eq(&self, other: &Reason) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for Reason

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(val: u8) -> Result<Self, Error>

Performs the conversion.
Source§

impl Copy for Reason

Source§

impl StructuralPartialEq for Reason

Auto Trait Implementations§

§

impl Freeze for Reason

§

impl RefUnwindSafe for Reason

§

impl Send for Reason

§

impl Sync for Reason

§

impl Unpin for Reason

§

impl UnwindSafe for Reason

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V