Enum bluenrg::gatt::Error[][src]

pub enum Error<E> {
    DescriptorTooLong,
    DescriptorBufferTooLong,
    ValueBufferTooLong,
    TooManyHandlesToRead,
    Comm(E),
}

Potential errors from parameter validation.

Before some commands are sent to the controller, the parameters are validated. This type enumerates the potential validation errors. Must be specialized on the types of communication errors.

Variants

For the Add Characteristic Descriptor command: the descriptor value maximum length is so large that the serialized structure may be more than 255 bytes. The maximum size is 227.

For the Update Characteristir Value command: the length of the characteristic value is so large that the serialized structure would be more than 255 bytes. The maximum size is 249.

For the Read Multiple Characteristic Values command: the number of handles would cause the serialized command to be more than 255 bytes. The maximum length is 126 handles.

Underlying communication error.

Trait Implementations

impl<E: Copy> Copy for Error<E>
[src]

impl<E: Clone> Clone for Error<E>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<E: Debug> Debug for Error<E>
[src]

Formats the value using the given formatter. Read more

impl<E: PartialEq> PartialEq for Error<E>
[src]

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

This method tests for !=.

Auto Trait Implementations

impl<E> Send for Error<E> where
    E: Send

impl<E> Sync for Error<E> where
    E: Sync