[][src]Enum bluenrg::event::Status

#[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 Clone for Status[src]

impl Copy for Status[src]

impl Debug for Status[src]

impl Into<u8> for Status[src]

impl PartialEq<Status> for Status[src]

impl StructuralPartialEq for Status[src]

impl TryFrom<u8> for Status[src]

type Error = BadStatusError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for Status

impl Sync for Status

impl Unpin for Status

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.