trouble-host

Crates

git

Versions

default

Flavors

Struct AttErrorCode

Source
pub struct AttErrorCode { /* private fields */ }
Expand description

Attribute Error Code

This enum type describes the ATT_ERROR_RSP PDU from the Bluetooth Core Specification Version 6.0 | Vol 3, Part F (page 1491) See also: Core Specification Supplement, Part B: Common Profile and Service Error Codes

Implementations§

Source§

impl AttErrorCode

Source

pub const INVALID_HANDLE: Self

Attempted to use a handle that isn’t valid on this server

Source

pub const READ_NOT_PERMITTED: Self

The attribute cannot be read

Source

pub const WRITE_NOT_PERMITTED: Self

The attribute cannot be written due to permissions

Source

pub const INVALID_PDU: Self

The attribute PDU was invalid

Source

pub const INSUFFICIENT_AUTHENTICATION: Self

The attribute requires authentication before it can be read or written

Source

pub const REQUEST_NOT_SUPPORTED: Self

ATT Server does not support the request received from the client

Source

pub const INVALID_OFFSET: Self

Offset specified was past the end of the attribute

Source

pub const INSUFFICIENT_AUTHORISATION: Self

The attribute requires authorisation before it can be read or written

Source

pub const PREPARE_QUEUE_FULL: Self

Too many prepare writes have been queued

Source

pub const ATTRIBUTE_NOT_FOUND: Self

No attribute found within the given attribute handle range

Source

pub const ATTRIBUTE_NOT_LONG: Self

The attribute cannot be read using the ATT_READ_BLOB_REQ PDU

Source

pub const INSUFFICIENT_ENCRYPTION_KEY_SIZE: Self

The Encryption Key Size used for encrypting this link is too short

Source

pub const INVALID_ATTRIBUTE_VALUE_LENGTH: Self

The attribute value length is invalid for the operation

Source

pub const UNLIKELY_ERROR: Self

The attribute request that was requested had encountered an error that was unlikely, and therefore could not be completed as requested

Source

pub const INSUFFICIENT_ENCRYPTION: Self

The attribute requires encryption before it can be read or written

Source

pub const UNSUPPORTED_GROUP_TYPE: Self

The attribute type is not a supported grouping attribute as defined by a higher layer specification

Source

pub const INSUFFICIENT_RESOURCES: Self

Insufficient Resources to complete the request

Source

pub const DATABASE_OUT_OF_SYNC: Self

The server requests the client to rediscover the database

Source

pub const VALUE_NOT_ALLOWED: Self

The attribute parameter value was not allowed

Source

pub const WRITE_REQUEST_REJECTED: Self

Common profile and service error codes The write request could not be fulfilled for reasons other than permissions

Source

pub const CCCD_IMPROPERLY_CONFIGURED: Self

The client characteristic configuration descriptor (CCCD) is not configured according to the requirements of the profile or service

Source

pub const PROCEDURE_ALREADY_IN_PROGRESS: Self

The profile or service request could not be serviced because an operation that has been previousl triggered is still in progress

Source

pub const OUT_OF_RANGE: Self

The attribute value is out of range as defined by a profile or service specification

Trait Implementations§

Source§

impl Clone for AttErrorCode

Source§

fn clone(&self) -> AttErrorCode

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 AttErrorCode

Source§

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

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

impl Display for AttErrorCode

Source§

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

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

impl Format for AttErrorCode

Source§

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

Writes the defmt representation of self to fmt.
Source§

impl From<AttErrorCode> for Error

Source§

fn from(error: AttErrorCode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for AttErrorCode

Source§

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

Source§

impl Eq for AttErrorCode

Source§

impl StructuralPartialEq for AttErrorCode

Auto Trait Implementations§

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.