pub struct CommandHeader { /* private fields */ }
Expand description
Header for HCI Commands.
Trait Implementations§
Source§impl HciHeader for CommandHeader
impl HciHeader for CommandHeader
Source§const HEADER_LENGTH: usize = 4usize
const HEADER_LENGTH: usize = 4usize
Defines the length of the packet header. With the packet byte, this is 4. Without it, the
length shall be 3.
Source§fn new(opcode: Opcode, param_len: usize) -> CommandHeader
fn new(opcode: Opcode, param_len: usize) -> CommandHeader
Returns a new header with the given opcode and parameter length.
Source§fn copy_into_slice(&self, buffer: &mut [u8])
fn copy_into_slice(&self, buffer: &mut [u8])
Serialize the header into the given buffer, in Bluetooth byte order (little-endian). Read more
Auto Trait Implementations§
impl Freeze for CommandHeader
impl RefUnwindSafe for CommandHeader
impl Send for CommandHeader
impl Sync for CommandHeader
impl Unpin for CommandHeader
impl UnwindSafe for CommandHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more