#[repr(u8)]
pub enum AttError {
Show 53 variants InvalidHandle, ReadNotPermitted, WriteNotPermitted, InvalidPdu, InsufficientAuthentication, RequestNotSupported, InvalidOffset, InsufficientAuthorization, PrepareQueueFull, AttributeNotFound, AttributeNotLong, InsufficientEncryptionKeySize, InvalidAttributeValueLength, UnlikelyError, InsufficientEncryption, UnsupportedGroupType, InsufficientResources, ApplicationError0x80, ApplicationError0x81, ApplicationError0x82, ApplicationError0x83, ApplicationError0x84, ApplicationError0x85, ApplicationError0x86, ApplicationError0x87, ApplicationError0x88, ApplicationError0x89, ApplicationError0x8A, ApplicationError0x8B, ApplicationError0x8C, ApplicationError0x8D, ApplicationError0x8E, ApplicationError0x8F, ApplicationError0x90, ApplicationError0x91, ApplicationError0x92, ApplicationError0x93, ApplicationError0x94, ApplicationError0x95, ApplicationError0x96, ApplicationError0x97, ApplicationError0x98, ApplicationError0x99, ApplicationError0x9A, ApplicationError0x9B, ApplicationError0x9C, ApplicationError0x9D, ApplicationError0x9E, ApplicationError0x9F, WriteRequestRejected, ClientCharacteristicConfigurationDescriptorImproperlyConfigured, ProcedureAlreadyInProgress, OutOfRange,
}
Expand description

Potential error codes for the ATT Error Response. See Table 3.3 in the Bluetooth Core Specification, v4.1, Vol 3, Part F, Section 3.4.1.1 and The Bluetooth Core Specification Supplement, Table 1.1.

Variants§

§

InvalidHandle

The attribute handle given was not valid on this server.

§

ReadNotPermitted

The attribute cannot be read.

§

WriteNotPermitted

The attribute cannot be written.

§

InvalidPdu

The attribute PDU was invalid.

§

InsufficientAuthentication

The attribute requires authentication before it can be read or written.

§

RequestNotSupported

Attribute server does not support the request received from the client.

§

InvalidOffset

Offset specified was past the end of the attribute.

§

InsufficientAuthorization

The attribute requires authorization before it can be read or written.

§

PrepareQueueFull

Too many prepare writes have been queued.

§

AttributeNotFound

No attribute found within the given attribute handle range.

§

AttributeNotLong

The attribute cannot be read or written using the Read Blob Request.

§

InsufficientEncryptionKeySize

The Encryption Key Size used for encrypting this link is insufficient.

§

InvalidAttributeValueLength

The attribute value length is invalid for the operation.

§

UnlikelyError

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

§

InsufficientEncryption

The attribute requires encryption before it can be read or written.

§

UnsupportedGroupType

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

§

InsufficientResources

Insufficient Resources to complete the request.

§

ApplicationError0x80

Application error code defined by a higher layer specification.

§

ApplicationError0x81

Application error code defined by a higher layer specification.

§

ApplicationError0x82

Application error code defined by a higher layer specification.

§

ApplicationError0x83

Application error code defined by a higher layer specification.

§

ApplicationError0x84

Application error code defined by a higher layer specification.

§

ApplicationError0x85

Application error code defined by a higher layer specification.

§

ApplicationError0x86

Application error code defined by a higher layer specification.

§

ApplicationError0x87

Application error code defined by a higher layer specification.

§

ApplicationError0x88

Application error code defined by a higher layer specification.

§

ApplicationError0x89

Application error code defined by a higher layer specification.

§

ApplicationError0x8A

Application error code defined by a higher layer specification.

§

ApplicationError0x8B

Application error code defined by a higher layer specification.

§

ApplicationError0x8C

Application error code defined by a higher layer specification.

§

ApplicationError0x8D

Application error code defined by a higher layer specification.

§

ApplicationError0x8E

Application error code defined by a higher layer specification.

§

ApplicationError0x8F

Application error code defined by a higher layer specification.

§

ApplicationError0x90

Application error code defined by a higher layer specification.

§

ApplicationError0x91

Application error code defined by a higher layer specification.

§

ApplicationError0x92

Application error code defined by a higher layer specification.

§

ApplicationError0x93

Application error code defined by a higher layer specification.

§

ApplicationError0x94

Application error code defined by a higher layer specification.

§

ApplicationError0x95

Application error code defined by a higher layer specification.

§

ApplicationError0x96

Application error code defined by a higher layer specification.

§

ApplicationError0x97

Application error code defined by a higher layer specification.

§

ApplicationError0x98

Application error code defined by a higher layer specification.

§

ApplicationError0x99

Application error code defined by a higher layer specification.

§

ApplicationError0x9A

Application error code defined by a higher layer specification.

§

ApplicationError0x9B

Application error code defined by a higher layer specification.

§

ApplicationError0x9C

Application error code defined by a higher layer specification.

§

ApplicationError0x9D

Application error code defined by a higher layer specification.

§

ApplicationError0x9E

Application error code defined by a higher layer specification.

§

ApplicationError0x9F

Application error code defined by a higher layer specification.

§

WriteRequestRejected

The requested write operation cannot be fulfilled for reasons other than permissions.

§

ClientCharacteristicConfigurationDescriptorImproperlyConfigured

A Client Characteristic Configuration descriptor is not configured according to the requirements of the profile or service.

§

ProcedureAlreadyInProgress

A profile or service request cannot be serviced because an operation that has been previously triggered is still in progress.

§

OutOfRange

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

Trait Implementations§

source§

impl Clone for AttError

source§

fn clone(&self) -> AttError

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 AttError

source§

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

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

impl Format for AttError

source§

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

Writes the defmt representation of self to fmt.
source§

impl PartialEq<AttError> for AttError

source§

fn eq(&self, other: &AttError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u8> for AttError

§

type Error = u8

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

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

Performs the conversion.
source§

impl Copy for AttError

source§

impl StructuralPartialEq for AttError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 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 Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.