pub enum CommandError {
Show 14 variants
Address,
BitRateSelection,
BlockNumber,
Checksum,
ClockMode,
DataSize,
DeviceCode,
Erasure,
IDCodeMismatch,
InputFrequency,
MultiplicationRatio,
OperatingFrequency,
Programming,
ProgrammingErasureStateTransition,
}
Expand description
An error returned by a target in response to a command
Variants§
Address
Invalid address or area
BitRateSelection
Requested bit rate could not be selected within an acceptable margin of error
BlockNumber
Invalid block number
Checksum
Checksum mismatch
ClockMode
Invalid clock mode
DataSize
Invalid data size (zero, too large, or calculated end address out of bounds)
DeviceCode
Invalid device code
Erasure
Error occurred during erasure (target or user initiated)
IDCodeMismatch
Supplied ID code did not match
InputFrequency
Input frequency out of range for selected clock mode
MultiplicationRatio
Multiplication ratio invalid for selected clock mode
OperatingFrequency
Calculated operating frequency out of range for clock
Programming
Error occurred during programming
ProgrammingErasureStateTransition
Failed to transition into programming/erasure state
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
Returns a copy 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 CommandError
impl Debug for CommandError
Source§impl Display for CommandError
impl Display for CommandError
Source§impl From<CommandError> for Error
impl From<CommandError> for Error
Source§fn from(command_error: CommandError) -> Error
fn from(command_error: CommandError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for CommandError
impl PartialEq for CommandError
impl Copy for CommandError
impl StructuralPartialEq for CommandError
Auto Trait Implementations§
impl Freeze for CommandError
impl RefUnwindSafe for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnwindSafe for CommandError
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