pub enum Error<D: Debug, E: Debug> {
SerialDevice(D),
PinError(E),
BadChannel(u8),
NoResponse,
NoOk(String<16>),
}
Expand description
An error in creating a device, for some internal or an underlying issue
Variants§
SerialDevice(D)
Underlying device error
PinError(E)
Underling pin error
BadChannel(u8)
An invalid channel was selected
NoResponse
No response was recieved
NoOk(String<16>)
A non-ok response was recieved
Trait Implementations§
Auto Trait Implementations§
impl<D, E> Freeze for Error<D, E>
impl<D, E> RefUnwindSafe for Error<D, E>where
D: RefUnwindSafe,
E: RefUnwindSafe,
impl<D, E> Send for Error<D, E>
impl<D, E> Sync for Error<D, E>
impl<D, E> Unpin for Error<D, E>
impl<D, E> UnwindSafe for Error<D, E>where
D: UnwindSafe,
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more