Enum bluenrg::hal::Error[][src]

pub enum Error<E> {
    InvalidChannel(u8),
    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 Start Tone command, the channel was greater than the maximum allowed channel (39). The invalid channel is returned.

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