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

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

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 AttHandle 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)

Trait Implementations

impl From<u8> for ErrorCode[src]

impl From<ErrorCode> for u8[src]

impl Debug for ErrorCode[src]

impl Copy for ErrorCode[src]

impl Clone for ErrorCode[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for ErrorCode

impl Sync for ErrorCode

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]