pub trait Command {
// Required methods
fn command_type(&self) -> CommandType;
fn response_type(&self) -> ResponseType;
fn argument(&self) -> u32;
fn set_argument(&mut self, arg: u32);
fn crc(&self) -> u8;
fn set_crc(&mut self, crc: u8);
}Expand description
Represents common functionality for SD/MMC command types.
Required Methods§
Sourcefn command_type(&self) -> CommandType
fn command_type(&self) -> CommandType
Gets the SD/MMC command type.
Sourcefn response_type(&self) -> ResponseType
fn response_type(&self) -> ResponseType
Gets the SD/MMC response type expected for the command.
Sourcefn set_argument(&mut self, arg: u32)
fn set_argument(&mut self, arg: u32)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".