pub struct ErrorContext {
pub phase: Phase,
pub cmd: Option<u8>,
}Expand description
Operational context attached to recoverable bus / protocol errors.
Helps callers triage failures: which phase of the SD/MMC pipeline raised the error, and which CMD/ACMD index was being processed at the time, when known.
Fields§
§phase: PhasePipeline phase when the fault was raised.
cmd: Option<u8>CMD/ACMD index being processed, if applicable.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
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 ErrorContext
impl Debug for ErrorContext
Source§impl Default for ErrorContext
impl Default for ErrorContext
Source§fn default() -> ErrorContext
fn default() -> ErrorContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for ErrorContext
impl PartialEq for ErrorContext
Source§fn eq(&self, other: &ErrorContext) -> bool
fn eq(&self, other: &ErrorContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ErrorContext
impl Eq for ErrorContext
impl StructuralPartialEq for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin for ErrorContext
impl UnwindSafe for ErrorContext
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