Trait bluetooth_hci::event::VendorReturnParameters [−][src]
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.
Required Methods
fn new(buffer: &[u8]) -> Result<Self, Error<Self::Error>> where
Self: Sized,
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).