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
InvalidChannel(u8)
For the Start Tone command, the channel was greater than the maximum allowed channel (39). The invalid channel is returned.
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)
1.0.0
[src]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>