pub enum Error {
Show 31 variants
Hci(Error),
HciDecode(FromHciBytesError),
Att(AttErrorCode),
InsufficientSpace,
InvalidValue,
UnexpectedDataLength {
expected: usize,
actual: usize,
},
CannotConstructGattValue([u8; 16]),
ConfigFilterAcceptListIsEmpty,
UnexpectedGattResponse,
MalformedCharacteristicDeclaration {
expected: usize,
actual: usize,
},
InvalidCharacteristicDeclarationData,
InvalidCccdHandleLength(usize),
FailedToFinalize {
expected: usize,
actual: usize,
},
CodecError(Error),
ExtendedAdvertisingNotSupported,
InvalidUuidLength(usize),
Advertisement(AdvertisementDataError),
InvalidChannelId,
NoChannelAvailable,
NotFound,
InvalidState,
OutOfMemory,
NotSupported,
ChannelClosed,
Timeout,
Busy,
NoPermits,
Disconnected,
ConnectionLimitReached,
GattSubscriberLimitReached,
Other,
}
Expand description
Errors related to Host.
Variants§
Hci(Error)
Error encoding parameters for HCI commands.
HciDecode(FromHciBytesError)
Error decoding responses from HCI commands.
Att(AttErrorCode)
Error from the Attribute Protocol.
InsufficientSpace
Insufficient space in the buffer.
InvalidValue
Invalid value.
UnexpectedDataLength
Unexpected data length.
This happens if the attribute data length doesn’t match the input length size,
and the attribute is deemed as not having variable length due to the characteristic’s
MAX_SIZE
and MIN_SIZE
being defined as equal.
CannotConstructGattValue([u8; 16])
Error converting from GATT value.
ConfigFilterAcceptListIsEmpty
Scan config filter accept list is empty.
UnexpectedGattResponse
Unexpected GATT response.
MalformedCharacteristicDeclaration
Received characteristic declaration data shorter than the minimum required length (5 bytes).
InvalidCharacteristicDeclarationData
Failed to decode the data structure within a characteristic declaration attribute value.
InvalidCccdHandleLength(usize)
Invalid CCCD handle length.
FailedToFinalize
Failed to finalize the packet.
CodecError(Error)
Codec error.
ExtendedAdvertisingNotSupported
Extended advertising not supported.
InvalidUuidLength(usize)
Invalid UUID length.
Advertisement(AdvertisementDataError)
Error decoding advertisement data.
InvalidChannelId
Invalid l2cap channel id provided.
NoChannelAvailable
No l2cap channel available.
NotFound
Resource not found.
InvalidState
Invalid state.
OutOfMemory
Out of memory.
NotSupported
Unsupported operation.
ChannelClosed
L2cap channel closed.
Timeout
Operation timed out.
Busy
Controller is busy.
NoPermits
No send permits available.
Disconnected
Connection is disconnected.
ConnectionLimitReached
Connection limit has been reached.
GattSubscriberLimitReached
GATT subscriber limit has been reached.
The limit can be modified using the gatt-client-notification-max-subscribers-N
features.
Other
Other error.