Enum AttErrorKind

Source
#[non_exhaustive]
pub enum AttErrorKind {
Show 19 variants Other, Success, InvalidHandle, ReadNotPermitted, WriteNotPermitted, InvalidPdu, InsufficientAuthentication, RequestNotSupported, InvalidOffset, InsufficientAuthorization, PrepareQueueFull, AttributeNotFound, AttributeNotLong, InsufficientEncryptionKeySize, InvalidAttributeValueLength, UnlikelyError, InsufficientEncryption, UnsupportedGroupType, InsufficientResources,
}
Expand description

The possible errors returned by a GATT server (a remote peripheral) during Bluetooth low energy ATT transactions.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Other

ATT error that didn’t map to any of the existing variants.

§

Success

The ATT command or request successfully completed.

§

InvalidHandle

The attribute handle is invalid on this peripheral.

§

ReadNotPermitted

The permissions prohibit reading the attribute’s value.

§

WriteNotPermitted

The permissions prohibit writing the attribute’s value.

§

InvalidPdu

The attribute Protocol Data Unit (PDU) is invalid.

§

InsufficientAuthentication

Reading or writing the attribute’s value failed for lack of authentication.

§

RequestNotSupported

The attribute server doesn’t support the request received from the client.

§

InvalidOffset

The specified offset value was past the end of the attribute’s value.

§

InsufficientAuthorization

Reading or writing the attribute’s value failed for lack of authorization.

§

PrepareQueueFull

The prepare queue is full, as a result of there being too many write requests in the queue.

§

AttributeNotFound

The attribute wasn’t found within the specified attribute handle range.

§

AttributeNotLong

The ATT read blob request can’t read or write the attribute.

§

InsufficientEncryptionKeySize

The encryption key size used for encrypting this link is insufficient.

§

InvalidAttributeValueLength

The length of the attribute’s value is invalid for the intended operation.

§

UnlikelyError

The ATT request encountered an unlikely error and wasn’t completed.

§

InsufficientEncryption

Reading or writing the attribute’s value failed for lack of encryption.

§

UnsupportedGroupType

The attribute type isn’t a supported grouping attribute as defined by a higher-layer specification.

§

InsufficientResources

Resources are insufficient to complete the ATT request.

Trait Implementations§

Source§

impl Clone for AttErrorKind

Source§

fn clone(&self) -> AttErrorKind

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 AttErrorKind

Source§

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

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

impl Hash for AttErrorKind

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 PartialEq for AttErrorKind

Source§

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

Source§

impl Eq for AttErrorKind

Source§

impl StructuralPartialEq for AttErrorKind

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, 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.