[][src]Trait bluetooth_hci::event::VendorReturnParameters

pub trait VendorReturnParameters {
    type Error;
    fn new(buffer: &[u8]) -> Result<Self, Error<Self::Error>>
    where
        Self: Sized
; }

Trait for return parameters for vendor-specific commands.

Associated Types

type Error

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

Loading content...

Required methods

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).

Loading content...

Implementors

Loading content...