pub trait Cmd: WriteHci {
type Params: WriteHci;
const OPCODE: Opcode;
// Required method
fn params(&self) -> &Self::Params;
// Provided method
fn header(&self) -> [u8; 3] { ... }
}
Expand description
An object representing an HCI Command
Required Associated Constants§
Required Associated Types§
Required Methods§
Provided Methods§
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.