pub trait Command {
const TYPE_CODE: i32;
// Required methods
fn write_fields(&self) -> Result<Vec<u8>, CommandError>;
fn read_from(input: &[u8]) -> Result<Self, CommandError>
where Self: Sized;
}
Expand description
trait for Command.
Required Associated Constants§
Required Methods§
fn write_fields(&self) -> Result<Vec<u8>, CommandError>
fn read_from(input: &[u8]) -> Result<Self, CommandError>where
Self: Sized,
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.