pub struct Header { /* private fields */ }Expand description
Header for HCI Commands.
Trait Implementations§
Source§impl HciHeader for Header
impl HciHeader for Header
Source§const HEADER_LENGTH: usize = 3usize
const HEADER_LENGTH: usize = 3usize
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) -> Header
fn new(opcode: Opcode, param_len: usize) -> Header
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 Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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