pub enum HciError {
Show 72 variants
Success,
UnknownCommand,
UnknownConnectionId,
HardwareFailure,
PageTimeout,
AuthenticationFailure,
PinOrKeyMissing,
MemoryCapacityExceeded,
ConnectionTimeout,
ConnectionLimitExceeded,
SynchronousConnectionLimitExceeded,
ConnectionAlreadyExists,
CommandDisallowed,
ConnectionRejectedLimitedResources,
ConnectionRejectedSecurity,
ConnectionRejectedBadBdAddr,
ConnectionAcceptTimeoutExceeded,
UnsupportedFeatureOrParameter,
InvalidHcicommandParameters,
RemoteUserTerminatedConnection,
RemoteDeviceTerminatedConnectionLowResources,
RemoteDeviceTerminatedConnectionPowerOff,
ConnectionTerminatedByLocalHost,
RepeatedAttempts,
PairingNotAllowed,
UnknownLmpPdu,
UnsupportedRemoteFeature,
ScoOffsetRejected,
ScoIntervalRejected,
ScoAirModeRejected,
InvalidLmpOrLlParameters,
UnspecifiedError,
UnsupportedLmpOrLlParameterValue,
RoleChangeNotAllowed,
LmpOrLlResponseTimeout,
LmpErrorTransactionCollision,
LmpPduNotAllowed,
EncryptionModeNotAcceptable,
LinkKeyCannotBeChanged,
RequestedQosNotSupported,
InstantPassed,
PairingWithUnitKeyNotSupported,
DifferentTransactionCollision,
Reserved0,
QosUnacceptableParameter,
QosRejected,
ChannelClassificationNotSupported,
InsufficientSecurity,
ParameterOutOfMandatoryRange,
Reserved1,
RoleSwitchPending,
Reserved2,
ReservedSlotViolation,
RoleSwitchFailed,
ExtendedInquiryResponseTooLarge,
SecureSimplePairingNotSupportedByHost,
HostBusyPairing,
ConnectionRejectedNoSuitableChannelFound,
ControllerBusy,
UnacceptableConnectionParameters,
DirectedAdvertisingTimeout,
ConnectionTerminatedMicFailure,
ConnectionFailedToBeEstablished,
MacConnectionFailed,
CoarseClockAdjustmentRejected,
Type0SubmapNotDefined,
UnknownAdvertisingIdentifier,
LimitReached,
OperationCancelledByHost,
PacketTooLong,
TooLate,
TooEarly,
// some variants omitted
}
Expand description
Defines the list of HCI protocol error codes that a Bluetooth controller can report. These values are taken from Bluetooth Core Specification v5.4, Vol 2, Part D, Section 1.3
Variants§
Success
UnknownCommand
UnknownConnectionId
HardwareFailure
PageTimeout
AuthenticationFailure
PinOrKeyMissing
MemoryCapacityExceeded
ConnectionTimeout
ConnectionLimitExceeded
SynchronousConnectionLimitExceeded
ConnectionAlreadyExists
CommandDisallowed
ConnectionRejectedLimitedResources
ConnectionRejectedSecurity
ConnectionRejectedBadBdAddr
ConnectionAcceptTimeoutExceeded
UnsupportedFeatureOrParameter
InvalidHcicommandParameters
RemoteUserTerminatedConnection
RemoteDeviceTerminatedConnectionLowResources
RemoteDeviceTerminatedConnectionPowerOff
ConnectionTerminatedByLocalHost
RepeatedAttempts
PairingNotAllowed
UnknownLmpPdu
UnsupportedRemoteFeature
ScoOffsetRejected
ScoIntervalRejected
ScoAirModeRejected
InvalidLmpOrLlParameters
UnspecifiedError
UnsupportedLmpOrLlParameterValue
RoleChangeNotAllowed
LmpOrLlResponseTimeout
LmpErrorTransactionCollision
LmpPduNotAllowed
EncryptionModeNotAcceptable
LinkKeyCannotBeChanged
RequestedQosNotSupported
InstantPassed
PairingWithUnitKeyNotSupported
DifferentTransactionCollision
Reserved0
QosUnacceptableParameter
QosRejected
ChannelClassificationNotSupported
InsufficientSecurity
ParameterOutOfMandatoryRange
Reserved1
RoleSwitchPending
Reserved2
ReservedSlotViolation
RoleSwitchFailed
ExtendedInquiryResponseTooLarge
SecureSimplePairingNotSupportedByHost
HostBusyPairing
ConnectionRejectedNoSuitableChannelFound
ControllerBusy
UnacceptableConnectionParameters
DirectedAdvertisingTimeout
ConnectionTerminatedMicFailure
ConnectionFailedToBeEstablished
MacConnectionFailed
CoarseClockAdjustmentRejected
Type0SubmapNotDefined
UnknownAdvertisingIdentifier
LimitReached
OperationCancelledByHost
PacketTooLong
TooLate
TooEarly
Implementations§
Source§impl HciError
impl HciError
pub fn from_primitive(prim: u8) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u8) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<HciError, D> for HciError
impl<D: ResourceDialect> Decode<HciError, D> for HciError
Source§impl Ord for HciError
impl Ord for HciError
Source§impl PartialOrd for HciError
impl PartialOrd for HciError
Source§impl TypeMarker for HciError
impl TypeMarker for HciError
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for HciError
impl ValueTypeMarker for HciError
impl Copy for HciError
impl Eq for HciError
impl StructuralPartialEq for HciError
Auto Trait Implementations§
impl Freeze for HciError
impl RefUnwindSafe for HciError
impl Send for HciError
impl Sync for HciError
impl Unpin for HciError
impl UnwindSafe for HciError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)