pub trait VendorReturnParameters {
    type Error;

    // Required method
    fn new(buffer: &[u8]) -> Result<Self, Error<Self::Error>>
       where Self: Sized;
}
Expand description

Trait for return parameters for vendor-specific commands.

Required Associated Types§

source

type Error

Enumeration of vendor-specific errors that may occur when deserializing return parameters for vendor-specific commands.

Required Methods§

source

fn new(buffer: &[u8]) -> Result<Self, Error<Self::Error>>where Self: Sized,

Deserializes vendor-specific return parameters from the contents of the buffer. The buffer is the full payload of the command complete event, starting with the length (1 byte) and opcode (2 bytes).

Implementors§