Struct Error

Source
pub struct Error(/* private fields */);
Expand description

An error representation for HCI errors.

Implementations§

Source§

impl Error

Source

pub const fn to_status(self) -> Status

Get the status representation.

Source§

impl Error

Source

pub const UNKNOWN_CMD: Error

Unknown HCI Command

Source

pub const UNKNOWN_CONN_IDENTIFIER: Error

Unknown Connection Identifier

Source

pub const HARDWARE_FAILURE: Error

Hardware Failure

Source

pub const PAGE_TIMEOUT: Error

Page Timeout

Source

pub const AUTHENTICATION_FAILURE: Error

Authentication Failure

Source

pub const PIN_OR_KEY_MISSING: Error

PIN or Key Missing

Source

pub const MEMORY_CAPACITY_EXCEEDED: Error

Memory Capacity Exceeded

Source

pub const CONN_TIMEOUT: Error

Connection Timeout

Source

pub const CONN_LIMIT_EXCEEDED: Error

Connection Limit Exceeded

Source

pub const SYNCHRONOUS_CONN_LIMIT_EXCEEDED: Error

Synchronous Connection Limit To A Device Exceeded

Source

pub const CONN_ALREADY_EXISTS: Error

Connection Already Exists

Source

pub const CMD_DISALLOWED: Error

Command Disallowed

Source

pub const CONN_REJECTED_LIMITED_RESOURCES: Error

Connection Rejected due to Limited Resources

Source

pub const CONN_REJECTED_SECURITY_REASONS: Error

Connection Rejected Due To Security Reasons

Source

pub const CONN_REJECTED_UNACCEPTABLE_BD_ADDR: Error

Connection Rejected due to Unacceptable BD_ADDR

Source

pub const CONN_ACCEPT_TIMEOUT_EXCEEDED: Error

Connection Accept Timeout Exceeded

Source

pub const UNSUPPORTED: Error

Unsupported Feature or Parameter Value

Source

pub const INVALID_HCI_PARAMETERS: Error

Invalid HCI Command Parameters

Source

pub const REMOTE_USER_TERMINATED_CONN: Error

Remote User Terminated Connection

Source

pub const REMOTE_DEVICE_TERMINATED_CONN_LOW_RESOURCES: Error

Remote Device Terminated Connection due to Low Resources

Source

pub const REMOTE_DEVICE_TERMINATED_CONN_POWER_OFF: Error

Remote Device Terminated Connection due to Power Off

Source

pub const CONN_TERMINATED_BY_LOCAL_HOST: Error

Connection Terminated By Local Host

Source

pub const REPEATED_ATTEMPTS: Error

Repeated Attempts

Source

pub const PAIRING_NOT_ALLOWED: Error

Pairing Not Allowed

Source

pub const UNKNOWN_LMP_PDU: Error

Unknown LMP PDU

Source

pub const UNSUPPORTED_REMOTE_FEATURE: Error

Unsupported Remote Feature

Source

pub const SCO_OFFSET_REJECTED: Error

SCO Offset Rejected

Source

pub const SCO_INTERVAL_REJECTED: Error

SCO Interval Rejected

Source

pub const SCO_AIR_MODE_REJECTED: Error

SCO Air Mode Rejected

Source

pub const INVALID_LMP_LL_PARAMETERS: Error

Invalid LMP Parameters / Invalid LL Parameters

Source

pub const UNSPECIFIED: Error

Unspecified Error

Source

pub const UNSUPPORTED_LMP_LL_PARAMETER_VALUE: Error

Unsupported LMP Parameter Value / Unsupported LL Parameter Value

Source

pub const ROLE_CHANGE_NOT_ALLOWED: Error

Role Change Not Allowed

Source

pub const LMP_LL_RESPONSE_TIMEOUT: Error

LMP Response Timeout / LL Response Timeout

Source

pub const LMP_LL_COLLISION: Error

LMP Error Transaction Collision / LL Procedure Collision

Source

pub const LMP_PDU_NOT_ALLOWED: Error

LMP PDU Not Allowed

Source

pub const ENCRYPTION_MODE_NOT_ACCEPTABLE: Error

Encryption Mode Not Acceptable

Link Key cannot be Changed

Source

pub const REQUESTED_QOS_NOT_SUPPORTED: Error

Requested QoS Not Supported

Source

pub const INSTANT_PASSED: Error

Instant Passed

Source

pub const PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED: Error

Pairing With Unit Key Not Supported

Source

pub const DIFFERENT_TRANSACTION_COLLISION: Error

Different Transaction Collision

Source

pub const QOS_UNACCEPTABLE_PARAMETER: Error

QoS Unacceptable Parameter

Source

pub const QOS_REJECTED: Error

QoS Rejected

Source

pub const CHANNEL_CLASSIFICATION_NOT_SUPPORTED: Error

Channel Classification Not Supported

Source

pub const INSUFFICIENT_SECURITY: Error

Insufficient Security

Source

pub const PARAMETER_OUT_OF_RANGE: Error

Parameter Out Of Mandatory Range

Source

pub const ROLE_SWITCH_PENDING: Error

Role Switch Pending

Source

pub const RESERVED_SLOT_VIOLATION: Error

Reserved Slot Violation

Source

pub const ROLE_SWITCH_FAILED: Error

Role Switch Failed

Source

pub const EXT_INQUIRY_RESPONSE_TOO_LARGE: Error

Extended Inquiry Response Too Large

Source

pub const SECURE_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST: Error

Secure Simple Pairing Not Supported By Host

Source

pub const HOST_BUSY_PAIRING: Error

Host Busy - Pairing

Source

pub const CONN_REJECTED_NO_SUITABLE_CHANNEL_FOUND: Error

Connection Rejected due to No Suitable Channel Found

Source

pub const CONTROLLER_BUSY: Error

Controller Busy

Source

pub const UNACCEPTABLE_CONN_PARAMETERS: Error

Unacceptable Connection Parameters

Source

pub const ADV_TIMEOUT: Error

Advertising Timeout

Source

pub const CONN_TERMINATED_DUE_TO_MIC_FAILURE: Error

Connection Terminated due to MIC Failure

Source

pub const CONN_FAILED_SYNCHRONIZATION_TIMEOUT: Error

Connection Failed to be Established / Synchronization Timeout

Source

pub const COARSE_CLOCK_ADJUSTMENT_REJECTED: Error

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

Source

pub const TYPE0_SUBMAP_NOT_DEFINED: Error

Type0 Submap Not Defined

Source

pub const UNKNOWN_ADV_IDENTIFIER: Error

Unknown Advertising Identifier

Source

pub const LIMIT_REACHED: Error

Limit Reached

Source

pub const OPERATION_CANCELLED_BY_HOST: Error

Operation Cancelled by Host

Source

pub const PACKET_TOO_LONG: Error

Packet Too Long

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

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 Error

Source§

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

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

impl Display for Error

Source§

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

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

impl<E> From<Error> for Error<E>

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for u8

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl Hash for Error

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Error

Source§

fn cmp(&self, other: &Error) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Error

Source§

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

Source§

fn partial_cmp(&self, other: &Error) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Error

Source§

impl Eq for Error

Source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

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.