pub enum CommandStatus {
DataAvailable,
Timeout,
ProcessingError,
ExecutionFailure,
TxDone,
Other(u8),
}Expand description
The outcome of the last command, in bits 3 to 1 of the status byte, from Table 13-76.
Variants§
DataAvailable
A packet was received and its data can be read (0x2).
Timeout
A transaction took too long and tripped the internal watchdog (0x3).
ProcessingError
The opcode was invalid or the parameters were the wrong length (0x4).
ExecutionFailure
The command was understood but could not be carried out (0x5).
TxDone
The transmission of the current packet ended (0x6).
Other(u8)
A value the datasheet leaves reserved (0x0, 0x1, 0x7).
Trait Implementations§
Source§impl Clone for CommandStatus
impl Clone for CommandStatus
Source§fn clone(&self) -> CommandStatus
fn clone(&self) -> CommandStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandStatus
Source§impl Debug for CommandStatus
impl Debug for CommandStatus
impl Eq for CommandStatus
Source§impl Hash for CommandStatus
impl Hash for CommandStatus
Source§impl PartialEq for CommandStatus
impl PartialEq for CommandStatus
Source§fn eq(&self, other: &CommandStatus) -> bool
fn eq(&self, other: &CommandStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandStatus
Auto Trait Implementations§
impl Freeze for CommandStatus
impl RefUnwindSafe for CommandStatus
impl Send for CommandStatus
impl Sync for CommandStatus
impl Unpin for CommandStatus
impl UnsafeUnpin for CommandStatus
impl UnwindSafe for CommandStatus
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