Struct Status

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

A HCI status value.

Implementations§

Source§

impl Status

Source

pub fn into_inner(self) -> u8

Get the underlying representation.

Source§

impl Status

Source

pub const SUCCESS: Status

Status for successful operation.

Source

pub const fn new(n: u8) -> Self

Create a new instance.

Source

pub const fn to_result(self) -> Result<(), Error>

Get a result representation of status which will provide an error if not a success.

Source§

impl Status

Source

pub const UNKNOWN_CMD: Status

Unknown HCI Command

Source

pub const UNKNOWN_CONN_IDENTIFIER: Status

Unknown Connection Identifier

Source

pub const HARDWARE_FAILURE: Status

Hardware Failure

Source

pub const PAGE_TIMEOUT: Status

Page Timeout

Source

pub const AUTHENTICATION_FAILURE: Status

Authentication Failure

Source

pub const PIN_OR_KEY_MISSING: Status

PIN or Key Missing

Source

pub const MEMORY_CAPACITY_EXCEEDED: Status

Memory Capacity Exceeded

Source

pub const CONN_TIMEOUT: Status

Connection Timeout

Source

pub const CONN_LIMIT_EXCEEDED: Status

Connection Limit Exceeded

Source

pub const SYNCHRONOUS_CONN_LIMIT_EXCEEDED: Status

Synchronous Connection Limit To A Device Exceeded

Source

pub const CONN_ALREADY_EXISTS: Status

Connection Already Exists

Source

pub const CMD_DISALLOWED: Status

Command Disallowed

Source

pub const CONN_REJECTED_LIMITED_RESOURCES: Status

Connection Rejected due to Limited Resources

Source

pub const CONN_REJECTED_SECURITY_REASONS: Status

Connection Rejected Due To Security Reasons

Source

pub const CONN_REJECTED_UNACCEPTABLE_BD_ADDR: Status

Connection Rejected due to Unacceptable BD_ADDR

Source

pub const CONN_ACCEPT_TIMEOUT_EXCEEDED: Status

Connection Accept Timeout Exceeded

Source

pub const UNSUPPORTED: Status

Unsupported Feature or Parameter Value

Source

pub const INVALID_HCI_PARAMETERS: Status

Invalid HCI Command Parameters

Source

pub const REMOTE_USER_TERMINATED_CONN: Status

Remote User Terminated Connection

Source

pub const REMOTE_DEVICE_TERMINATED_CONN_LOW_RESOURCES: Status

Remote Device Terminated Connection due to Low Resources

Source

pub const REMOTE_DEVICE_TERMINATED_CONN_POWER_OFF: Status

Remote Device Terminated Connection due to Power Off

Source

pub const CONN_TERMINATED_BY_LOCAL_HOST: Status

Connection Terminated By Local Host

Source

pub const REPEATED_ATTEMPTS: Status

Repeated Attempts

Source

pub const PAIRING_NOT_ALLOWED: Status

Pairing Not Allowed

Source

pub const UNKNOWN_LMP_PDU: Status

Unknown LMP PDU

Source

pub const UNSUPPORTED_REMOTE_FEATURE: Status

Unsupported Remote Feature

Source

pub const SCO_OFFSET_REJECTED: Status

SCO Offset Rejected

Source

pub const SCO_INTERVAL_REJECTED: Status

SCO Interval Rejected

Source

pub const SCO_AIR_MODE_REJECTED: Status

SCO Air Mode Rejected

Source

pub const INVALID_LMP_LL_PARAMETERS: Status

Invalid LMP Parameters / Invalid LL Parameters

Source

pub const UNSPECIFIED: Status

Unspecified Error

Source

pub const UNSUPPORTED_LMP_LL_PARAMETER_VALUE: Status

Unsupported LMP Parameter Value / Unsupported LL Parameter Value

Source

pub const ROLE_CHANGE_NOT_ALLOWED: Status

Role Change Not Allowed

Source

pub const LMP_LL_RESPONSE_TIMEOUT: Status

LMP Response Timeout / LL Response Timeout

Source

pub const LMP_LL_COLLISION: Status

LMP Error Transaction Collision / LL Procedure Collision

Source

pub const LMP_PDU_NOT_ALLOWED: Status

LMP PDU Not Allowed

Source

pub const ENCRYPTION_MODE_NOT_ACCEPTABLE: Status

Encryption Mode Not Acceptable

Link Key cannot be Changed

Source

pub const REQUESTED_QOS_NOT_SUPPORTED: Status

Requested QoS Not Supported

Source

pub const INSTANT_PASSED: Status

Instant Passed

Source

pub const PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED: Status

Pairing With Unit Key Not Supported

Source

pub const DIFFERENT_TRANSACTION_COLLISION: Status

Different Transaction Collision

Source

pub const QOS_UNACCEPTABLE_PARAMETER: Status

QoS Unacceptable Parameter

Source

pub const QOS_REJECTED: Status

QoS Rejected

Source

pub const CHANNEL_CLASSIFICATION_NOT_SUPPORTED: Status

Channel Classification Not Supported

Source

pub const INSUFFICIENT_SECURITY: Status

Insufficient Security

Source

pub const PARAMETER_OUT_OF_RANGE: Status

Parameter Out Of Mandatory Range

Source

pub const ROLE_SWITCH_PENDING: Status

Role Switch Pending

Source

pub const RESERVED_SLOT_VIOLATION: Status

Reserved Slot Violation

Source

pub const ROLE_SWITCH_FAILED: Status

Role Switch Failed

Source

pub const EXT_INQUIRY_RESPONSE_TOO_LARGE: Status

Extended Inquiry Response Too Large

Source

pub const SECURE_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST: Status

Secure Simple Pairing Not Supported By Host

Source

pub const HOST_BUSY_PAIRING: Status

Host Busy - Pairing

Source

pub const CONN_REJECTED_NO_SUITABLE_CHANNEL_FOUND: Status

Connection Rejected due to No Suitable Channel Found

Source

pub const CONTROLLER_BUSY: Status

Controller Busy

Source

pub const UNACCEPTABLE_CONN_PARAMETERS: Status

Unacceptable Connection Parameters

Source

pub const ADV_TIMEOUT: Status

Advertising Timeout

Source

pub const CONN_TERMINATED_DUE_TO_MIC_FAILURE: Status

Connection Terminated due to MIC Failure

Source

pub const CONN_FAILED_SYNCHRONIZATION_TIMEOUT: Status

Connection Failed to be Established / Synchronization Timeout

Source

pub const COARSE_CLOCK_ADJUSTMENT_REJECTED: Status

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

Source

pub const TYPE0_SUBMAP_NOT_DEFINED: Status

Type0 Submap Not Defined

Source

pub const UNKNOWN_ADV_IDENTIFIER: Status

Unknown Advertising Identifier

Source

pub const LIMIT_REACHED: Status

Limit Reached

Source

pub const OPERATION_CANCELLED_BY_HOST: Status

Operation Cancelled by Host

Source

pub const PACKET_TOO_LONG: Status

Packet Too Long

Trait Implementations§

Source§

impl ByteAlignedValue for Status

Source§

fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>

Obtain a reference to this type from a byte slice. Read more
Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

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 Status

Source§

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

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

impl Default for Status

Source§

fn default() -> Status

Returns the “default value” for a type. Read more
Source§

impl FixedSizeValue for Status

Source§

fn is_valid(_data: &[u8]) -> bool

Checks if the bit representation in data is valid for Self. Read more
Source§

impl From<Status> for u8

Source§

fn from(value: Status) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Status

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl<'de> FromHciBytes<'de> for &'de Status

Source§

fn from_hci_bytes( data: &'de [u8], ) -> Result<(Self, &'de [u8]), FromHciBytesError>

Deserialize bytes into a HCI type, return additional bytes.
Source§

fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>

Deserialize bytes into a HCI type, must consume all bytes.
Source§

impl Hash for Status

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 Status

Source§

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

Source§

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

Source§

impl Eq 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> AsHciBytes for T
where T: FixedSizeValue,

Source§

fn as_hci_bytes(&self) -> &[u8]

Get the byte representation of this type.
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<'de, T> FromHciBytes<'de> for T
where T: FixedSizeValue,

Source§

fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>

Deserialize bytes into a HCI type, return additional bytes.
Source§

fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>

Deserialize bytes into a HCI type, must consume all bytes.
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<'de, T> ReadHci<'de> for T
where T: FixedSizeValue,

Source§

const MAX_LEN: usize = const MAX_LEN: usize = core::mem::size_of::<Self>();

Max length read by this type.
Source§

fn read_hci<R>( reader: R, buf: &'de mut [u8], ) -> Result<T, ReadHciError<<R as ErrorType>::Error>>
where R: Read,

Read this type from the provided reader.
Source§

async fn read_hci_async<R>( reader: R, buf: &'de mut [u8], ) -> Result<T, ReadHciError<<R as ErrorType>::Error>>
where R: Read,

Read this type from the provided reader, async version.
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<T> WriteHci for T
where T: FixedSizeValue,

Source§

fn size(&self) -> usize

The number of bytes this value will write
Source§

fn write_hci<W>(&self, writer: W) -> Result<(), <W as ErrorType>::Error>
where W: Write,

Write this value to the provided writer.
Source§

async fn write_hci_async<W>( &self, writer: W, ) -> Result<(), <W as ErrorType>::Error>
where W: Write,

Write this value to the provided writer, async version.