pub trait Addressable: Sized + Clone{
type Ext;
// Required methods
fn get_address(&self) -> u16;
fn get_capacity(&self) -> CardCapacity;
fn size(&self) -> u64;
fn supports_cmd23(&self) -> bool;
}Expand description
Represents either an SD or EMMC card
Required Associated Types§
Required Methods§
Sourcefn get_address(&self) -> u16
fn get_address(&self) -> u16
Get this peripheral’s address on the SDMMC bus
Sourcefn get_capacity(&self) -> CardCapacity
fn get_capacity(&self) -> CardCapacity
Is this a standard or high capacity peripheral?
Sourcefn supports_cmd23(&self) -> bool
fn supports_cmd23(&self) -> bool
Whether the device supports CMD23 (SET_BLOCK_COUNT).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.