pub trait RamCommand {
// Required methods
fn command(&mut self, cmd: Command) -> Result<Response, Error>;
fn send_data(&mut self, data: &[u8]) -> Result<Response, Error>;
}Expand description
RAM命令处理trait,定义了发送命令和数据的接口
pub trait RamCommand {
// Required methods
fn command(&mut self, cmd: Command) -> Result<Response, Error>;
fn send_data(&mut self, data: &[u8]) -> Result<Response, Error>;
}RAM命令处理trait,定义了发送命令和数据的接口