pub trait Decode: Sized {
const COMMAND: u16;
// Required method
fn decode(frame: &[u8]) -> Result<Self, Status>;
}Expand description
Decode one single-command SMB2 frame into a typed request. Implemented per
command; dispatched statically by SmbRequest::parse.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".