pub enum SpiScriptError {
Mismatch {
step: usize,
expected: Option<SpiStep>,
actual: Vec<SpiTransfer>,
},
Fault(ErrorKind),
}Expand description
What a scripted SPI part refused.
Variants§
Mismatch
An operation arrived that does not match the next step of the script.
Fields
§
actual: Vec<SpiTransfer>The whole transaction as the driver issued it.
Fault(ErrorKind)
The next step was a SpiStep::Fault, so the part failed as scripted.
Trait Implementations§
Source§impl Clone for SpiScriptError
impl Clone for SpiScriptError
Source§fn clone(&self) -> SpiScriptError
fn clone(&self) -> SpiScriptError
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 moreSource§impl Debug for SpiScriptError
impl Debug for SpiScriptError
Source§impl Display for SpiScriptError
impl Display for SpiScriptError
impl Eq for SpiScriptError
Source§impl Error for SpiScriptError
impl Error for SpiScriptError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Error for SpiScriptError
impl Error for SpiScriptError
Source§impl PartialEq for SpiScriptError
impl PartialEq for SpiScriptError
Source§fn eq(&self, other: &SpiScriptError) -> bool
fn eq(&self, other: &SpiScriptError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpiScriptError
Auto Trait Implementations§
impl Freeze for SpiScriptError
impl RefUnwindSafe for SpiScriptError
impl Send for SpiScriptError
impl Sync for SpiScriptError
impl Unpin for SpiScriptError
impl UnsafeUnpin for SpiScriptError
impl UnwindSafe for SpiScriptError
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