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
DescriptorTooLong
For the Add Characteristic Descriptor command: the descriptor value is longer than the maximum descriptor value length.
DescriptorBufferTooLong
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.
ValueBufferTooLong
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.
TooManyHandlesToRead
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.
Comm(E)
Underlying communication error.
Trait Implementations
impl<E: Copy> Copy for Error<E>
[src]
impl<E: Copy> Copy for Error<E>
impl<E: Clone> Clone for Error<E>
[src]
impl<E: Clone> Clone for Error<E>
fn clone(&self) -> Error<E>
[src]
fn clone(&self) -> Error<E>
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<E: Debug> Debug for Error<E>
[src]
impl<E: Debug> Debug for Error<E>
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<E: PartialEq> PartialEq for Error<E>
[src]
impl<E: PartialEq> PartialEq for Error<E>