pub struct CardInfo {
pub sd_v2: bool,
pub high_capacity: bool,
pub ocr: u32,
pub capacity_blocks: Option<u64>,
pub cid: Option<CidResponse>,
}Expand description
Card information obtained during initialization
Fields§
§sd_v2: bool§high_capacity: bool§ocr: u32§capacity_blocks: Option<u64>User-data capacity in 512-byte blocks, parsed from the CSD.
None if the CSD reports a structure version we do not yet support.
cid: Option<CidResponse>Card identification register, parsed via CMD10. None if the card
did not return a valid R2 response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CardInfo
impl RefUnwindSafe for CardInfo
impl Send for CardInfo
impl Sync for CardInfo
impl Unpin for CardInfo
impl UnsafeUnpin for CardInfo
impl UnwindSafe for CardInfo
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