pub trait CommandScd: Debug + Sized {
// Required methods
fn flag(&self) -> CommandFlag;
fn scd_kind(&self) -> ScdKind;
fn scd_len(&self) -> u16;
fn serialize(&self, buf: impl Write) -> Result<()>;
fn ack_scd_len(&self) -> u16;
// Provided method
fn finalize(self, request_id: u16) -> CommandPacket<Self> { ... }
}Required Methods§
fn flag(&self) -> CommandFlag
fn scd_kind(&self) -> ScdKind
fn scd_len(&self) -> u16
fn serialize(&self, buf: impl Write) -> Result<()>
fn ack_scd_len(&self) -> u16
Provided Methods§
fn finalize(self, request_id: u16) -> CommandPacket<Self>
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.