Enum rubble::att::pdus::ErrorCode[][src]

pub enum ErrorCode {
Show 18 variants InvalidHandle, ReadNotPermitted, WriteNotPermitted, InvalidPdu, InsufficientAuthentication, RequestNotSupported, InvalidOffset, InsufficientAuthorization, PrepareQueueFull, AttributeNotFound, AttributeNotLong, InsufficientEncryptionKeySize, InvalidAttributeValueLength, UnlikelyError, InsufficientEncryption, UnsupportedGroupType, InsufficientResources, Unknown(u8),
}
Expand description

Error codes that can be sent from the ATT server to the client in response to a request.

Used as the payload of ErrorRsp PDUs.

Variants

InvalidHandle

Attempted to use an Handle that isn’t valid on this server.

ReadNotPermitted

Attribute isn’t readable.

WriteNotPermitted

Attribute isn’t writable.

InvalidPdu

Attribute PDU is invalid.

InsufficientAuthentication

Authentication needed before attribute can be read/written.

RequestNotSupported

Server doesn’t support this operation.

InvalidOffset

Offset was past the end of the attribute.

InsufficientAuthorization

Authorization needed before attribute can be read/written.

PrepareQueueFull

Too many “prepare write” requests have been queued.

AttributeNotFound

No attribute found within the specified attribute handle range.

AttributeNotLong

Attribute can’t be read/written using Read Key Blob request.

InsufficientEncryptionKeySize

The encryption key in use is too weak to access an attribute.

InvalidAttributeValueLength

Attribute value has an incorrect length for the operation.

UnlikelyError

Request has encountered an “unlikely” error and could not be completed.

InsufficientEncryption

Attribute cannot be read/written without an encrypted connection.

UnsupportedGroupType

Attribute type is an invalid grouping attribute according to a higher-layer spec.

InsufficientResources

Server didn’t have enough resources to complete a request.

Unknown(u8)

Tuple Fields of Unknown

0: u8

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Writes the defmt representation of self to fmt.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.