pub enum Lr2021Error {
Pin,
Spi,
CmdFail,
CmdErr,
BusyTimeout,
InvalidSize,
Unknown,
}Expand description
Error using the LR2021
Variants§
Pin
Unable to Set/Get a pin level
Spi
Unable to use SPI
CmdFail
Last command failed
CmdErr
Last command was invalid
BusyTimeout
Timeout while waiting for busy
InvalidSize
Command with invalid size (>18B)
Unknown
Unknown error
Trait Implementations§
Source§impl Clone for Lr2021Error
impl Clone for Lr2021Error
Source§fn clone(&self) -> Lr2021Error
fn clone(&self) -> Lr2021Error
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Lr2021Error
impl Debug for Lr2021Error
impl Copy for Lr2021Error
Auto Trait Implementations§
impl Freeze for Lr2021Error
impl RefUnwindSafe for Lr2021Error
impl Send for Lr2021Error
impl Sync for Lr2021Error
impl Unpin for Lr2021Error
impl UnwindSafe for Lr2021Error
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