#[non_exhaustive]pub enum Response {
Empty,
R1(R1Response),
R1b(R1Response),
R2([u8; 16]),
R3(OcrResponse),
R4(SdioOcrResponse),
R5(SdioRwResponse),
R6(RcaResponse),
R7(IfCondResponse),
}Expand description
Parsed response from the card
Marked #[non_exhaustive]: new response shapes (e.g. SDIO IO_RW
extensions) may be added before 1.0.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
No response phase — emitted when the command’s ResponseType is
ResponseType::None (e.g. CMD0). Renamed from Response::None to
avoid lexical confusion with ResponseType::None; the two now read
at a glance as “no response type configured” vs “no response decoded”.
R1(R1Response)
R1b(R1Response)
R2([u8; 16])
R3(OcrResponse)
R4(SdioOcrResponse)
R5(SdioRwResponse)
R6(RcaResponse)
R7(IfCondResponse)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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