Enum Status

Source
pub enum Status {
Show 70 variants Success, UnknownCommand, UnknownConnectionId, HardwareFailure, PageTimeout, AuthFailure, PinOrKeyMissing, OutOfMemory, ConnectionTimeout, ConnectionLimitExceeeded, SyncConnectionLimitExceeded, ConnectionAlreadyExists, CommandDisallowed, LimitedResources, ConnectionRejectedSecurity, UnacceptableBdAddr, AcceptTimeoutExceeded, UnsupportedFeature, InvalidParameters, RemoteTerminationByUser, RemoteTerminationLowResources, RemoteTerminationPowerOff, ConnectionTerminatedByHost, RepeatedAttempts, PairingNotAllowed, UnknownLmpPdu, UnsupportedRemoteFeature, ScoOffsetRejected, ScoIntervalRejected, ScoAirModeRejected, InvalidLmpParameters, UnspecifiedError, UnsupportedLmpParameterValue, RoleChangeNotAllowed, LmpResponseTimeout, LmpTransactionCollision, LmpPduNotAllowed, EncryptionModeNotAcceptable, LinkKeyCannotBeChanged, RequestedQosNotSupported, InstantPassed, PairingWithUnitKeyNotSupported, DifferentTransactionCollision, ReservedforFutureUse, QosUnacceptableParameter, QosRejected, ChannelClassificationNotSupported, InsufficientSecurity, ParameterOutOfMandatoryRange, ReservedForFutureUse49, RoleSwitchPending, ReservedForFutureUse51, ReservedSlotViolation, RoleSwitchFailed, ExtendedInquiryResponseTooLarge, SecureSimplePairingNotSupportedByHost, HostBusyPairing, ConnectionRejectedNoSuitableChannel, ControllerBusy, UnacceptableConnectionParameters, AdvertisingTimeout, ConnectionTerminatedMicFailure, ConnectionFailedToEstablish, MacConnectionFailed, CoarseClockAdjustmentRejectedDraggingAttempted, Type0SubmapNotDefined, UnknownAdvertisingId, LimitReached, OperationCancelledByHost, Vendor(VendorStatus),
}
Expand description

List of possible error codes, Bluetooth Spec, Vol 2, Part D, Section 2.

Includes an extension point for vendor-specific status codes.

Variants§

§

Success

Success

§

UnknownCommand

Unknown HCI Command

§

UnknownConnectionId

Unknown Connection Identifier

§

HardwareFailure

Hardware Failure

§

PageTimeout

Page Timeout

§

AuthFailure

Authentication Failure

§

PinOrKeyMissing

PIN or Key Missing

§

OutOfMemory

Memory Capacity Exceeded

§

ConnectionTimeout

Connection Timeout

§

ConnectionLimitExceeeded

Connection Limit Exceeded

§

SyncConnectionLimitExceeded

Synchronous Connection Limit To A Device Exceeded

§

ConnectionAlreadyExists

Connection Already Exists

§

CommandDisallowed

Command Disallowed

§

LimitedResources

Connection Rejected due to Limited Resources

§

ConnectionRejectedSecurity

Connection Rejected Due To Security Reasons

§

UnacceptableBdAddr

Connection Rejected due to Unacceptable BD_ADDR

§

AcceptTimeoutExceeded

Connection Accept Timeout Exceeded

§

UnsupportedFeature

Unsupported Feature or Parameter Value

§

InvalidParameters

Invalid HCI Command Parameters

§

RemoteTerminationByUser

Remote User Terminated Connection

§

RemoteTerminationLowResources

Remote Device Terminated Connection due to Low Resources

§

RemoteTerminationPowerOff

Remote Device Terminated Connection due to Power Off

§

ConnectionTerminatedByHost

Connection Terminated By Local Host

§

RepeatedAttempts

Repeated Attempts

§

PairingNotAllowed

Pairing Not Allowed

§

UnknownLmpPdu

Unknown LMP PDU

§

UnsupportedRemoteFeature

Unsupported Remote Feature / Unsupported LMP Feature

§

ScoOffsetRejected

SCO Offset Rejected

§

ScoIntervalRejected

SCO Interval Rejected

§

ScoAirModeRejected

SCO Air Mode Rejected

§

InvalidLmpParameters

Invalid LMP Parameters / Invalid LL Parameters

§

UnspecifiedError

Unspecified Error

§

UnsupportedLmpParameterValue

Unsupported LMP Parameter Value / Unsupported LL Parameter Value

§

RoleChangeNotAllowed

Role Change Not Allowed

§

LmpResponseTimeout

LMP Response Timeout / LL Response Timeout

§

LmpTransactionCollision

LMP Error Transaction Collision / LL Procedure Collision

§

LmpPduNotAllowed

LMP PDU Not Allowed

§

EncryptionModeNotAcceptable

Encryption Mode Not Acceptable

§

LinkKeyCannotBeChanged

Link Key cannot be Changed

§

RequestedQosNotSupported

Requested QoS Not Supported

§

InstantPassed

Instant Passed

§

PairingWithUnitKeyNotSupported

Pairing With Unit Key Not Supported

§

DifferentTransactionCollision

Different Transaction Collision

§

ReservedforFutureUse

Reserved for Future Use

§

QosUnacceptableParameter

QoS Unacceptable Parameter

§

QosRejected

QoS Rejected

§

ChannelClassificationNotSupported

Channel Classification Not Supported

§

InsufficientSecurity

Insufficient Security

§

ParameterOutOfMandatoryRange

Parameter Out Of Mandatory Range

§

ReservedForFutureUse49

Reserved for Future Use

§

RoleSwitchPending

Role Switch Pending

§

ReservedForFutureUse51

Reserved for Future Use

§

ReservedSlotViolation

Reserved Slot Violation

§

RoleSwitchFailed

Role Switch Failed

§

ExtendedInquiryResponseTooLarge

Extended Inquiry Response Too Large

§

SecureSimplePairingNotSupportedByHost

Secure Simple Pairing Not Supported By Host

§

HostBusyPairing

Host Busy - Pairing

§

ConnectionRejectedNoSuitableChannel

Connection Rejected due to No Suitable Channel Found

§

ControllerBusy

Controller Busy

§

UnacceptableConnectionParameters

Unacceptable Connection Parameters

§

AdvertisingTimeout

Advertising Timeout

§

ConnectionTerminatedMicFailure

Connection Terminated due to MIC Failure

§

ConnectionFailedToEstablish

Connection Failed to be Established

§

MacConnectionFailed

MAC Connection Failed

§

CoarseClockAdjustmentRejectedDraggingAttempted

Coarse Clock Adjustment Rejected but Will Try to Adjust Using Clock Dragging

§

Type0SubmapNotDefined

Type0 Submap Not Defined

First introduced in version 5.0

§

UnknownAdvertisingId

Unknown Advertising Identifier

First introduced in version 5.0

§

LimitReached

Limit Reached

First introduced in version 5.0

§

OperationCancelledByHost

Operation Cancelled by Host

First introduced in version 5.0

§

Vendor(VendorStatus)

Vendor-specific status code

Trait Implementations§

Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

Returns a copy 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 Status

Source§

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

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

impl From<Status> for u8

Source§

fn from(val: Status) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Status

Source§

fn eq(&self, other: &Status) -> 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 Status

Source§

type Error = BadStatusError

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

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

Performs the conversion.
Source§

impl Copy for Status

Source§

impl StructuralPartialEq for Status

Auto Trait Implementations§

§

impl Freeze for Status

§

impl RefUnwindSafe for Status

§

impl Send for Status

§

impl Sync for Status

§

impl Unpin for Status

§

impl UnwindSafe for Status

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, 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.