Enum bluenrg::event::Status [−][src]
#[repr(u8)]pub enum Status { Failed, InvalidParameters, NotAllowed, Error, AddressNotResolved, FlashReadFailed, FlashWriteFailed, FlashEraseFailed, InvalidCid, TimerNotValidLayer, TimerInsufficientResources, CsrkNotFound, IrkNotFound, DeviceNotFoundInDatabase, SecurityDatabaseFull, DeviceNotBonded, DeviceInBlacklist, InvalidHandle, InvalidParameter, OutOfHandle, InvalidOperation, InsufficientResources, InsufficientEncryptionKeySize, CharacteristicAlreadyExists, NoValidSlot, ScanWindowTooShort, NewIntervalFailed, IntervalTooLarge, LengthFailed, Timeout, ProfileAlreadyInitialized, NullParameter, }
Enumeration of vendor-specific status codes.
Variants
Failed
The command cannot be executed due to the current state of the device.
InvalidParameters
Some parameters are invalid.
NotAllowed
It is not allowed to start the procedure (e.g. another the procedure is ongoing or cannot be started on the given handle).
Error
Unexpected error.
AddressNotResolved
The address was not resolved.
FlashReadFailed
Failed to read from flash.
FlashWriteFailed
Failed to write to flash.
FlashEraseFailed
Failed to erase flash.
InvalidCid
Invalid CID
TimerNotValidLayer
Timer is not valid
TimerInsufficientResources
Insufficient resources to create the timer
CsrkNotFound
Connection signature resolving key (CSRK) is not found.
IrkNotFound
Identity resolving key (IRK) is not found
DeviceNotFoundInDatabase
The device is not in the security database.
SecurityDatabaseFull
The security database is full.
DeviceNotBonded
The device is not bonded.
DeviceInBlacklist
The device is blacklisted.
InvalidHandle
The handle (service, characteristic, or descriptor) is invalid.
InvalidParameter
A parameter is invalid
OutOfHandle
The characteristic handle is not part of the service.
InvalidOperation
The operation is invalid
InsufficientResources
Insufficient resources to complete the operation.
InsufficientEncryptionKeySize
The encryption key size is too small
CharacteristicAlreadyExists
The characteristic already exists.
NoValidSlot
Returned when no valid slots are available (e.g. when there are no available state machines).
ScanWindowTooShort
Returned when a scan window shorter than minimum allowed value has been requested (i.e. 2ms). The Rust API should prevent this error from occurring.
NewIntervalFailed
Returned when the maximum requested interval to be allocated is shorter then the current anchor period and a there is no submultiple for the current anchor period that is between the minimum and the maximum requested intervals.
IntervalTooLarge
Returned when the maximum requested interval to be allocated is greater than the current anchor period and there is no multiple of the anchor period that is between the minimum and the maximum requested intervals.
LengthFailed
Returned when the current anchor period or a new one can be found that is compatible to the interval range requested by the new slot but the maximum available length that can be allocated is less than the minimum requested slot length.
Timeout
MCU Library timed out.
ProfileAlreadyInitialized
MCU library: profile already initialized.
NullParameter
MCU library: A parameter was null.
Trait Implementations
impl Copy for Status
[src]
impl Copy for Status
impl Clone for Status
[src]
impl Clone for Status
fn clone(&self) -> Status
[src]
fn clone(&self) -> Status
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Status
[src]
impl Debug for Status
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Status
[src]
impl PartialEq for Status
fn eq(&self, other: &Status) -> bool
[src]
fn eq(&self, other: &Status) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl TryFrom<u8> for Status
[src]
impl TryFrom<u8> for Status
type Error = BadStatusError
try_from
)The type returned in the event of a conversion error.
fn try_from(value: u8) -> Result<Status, Self::Error>
[src]
fn try_from(value: u8) -> Result<Status, Self::Error>
try_from
)Performs the conversion.
impl Into<u8> for Status
[src]
impl Into<u8> for Status