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

The command cannot be executed due to the current state of the device.

Some parameters are invalid.

It is not allowed to start the procedure (e.g. another the procedure is ongoing or cannot be started on the given handle).

Unexpected error.

The address was not resolved.

Failed to read from flash.

Failed to write to flash.

Failed to erase flash.

Invalid CID

Timer is not valid

Insufficient resources to create the timer

Connection signature resolving key (CSRK) is not found.

Identity resolving key (IRK) is not found

The device is not in the security database.

The security database is full.

The device is not bonded.

The device is blacklisted.

The handle (service, characteristic, or descriptor) is invalid.

A parameter is invalid

The characteristic handle is not part of the service.

The operation is invalid

Insufficient resources to complete the operation.

The encryption key size is too small

The characteristic already exists.

Returned when no valid slots are available (e.g. when there are no available state machines).

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.

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.

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.

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.

MCU Library timed out.

MCU library: profile already initialized.

MCU library: A parameter was null.

Trait Implementations

impl Copy for Status
[src]

impl Clone for Status
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Status
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Status
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl TryFrom<u8> for Status
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl Into<u8> for Status
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Status

impl Sync for Status