pub trait Command<'a> {
type Response;
const COMMAND_STR: &'static str;
// Required method
fn parse_response(
response: &'a str,
) -> Result<Self::Response, GencmdCmdError>;
}Required Associated Constants§
const COMMAND_STR: &'static str
Required Associated Types§
Required Methods§
fn parse_response(response: &'a str) -> Result<Self::Response, GencmdCmdError>
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.