pub struct NoCommands;Expand description
Dummy struct used to specialize super::Hci. Since the Hci does not support sending
commands, we do not need a real header struct.
Trait Implementations§
Source§impl HciHeader for NoCommands
impl HciHeader for NoCommands
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) -> NoCommands
fn new(_opcode: Opcode, _param_len: usize) -> NoCommands
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 NoCommands
impl RefUnwindSafe for NoCommands
impl Send for NoCommands
impl Sync for NoCommands
impl Unpin for NoCommands
impl UnwindSafe for NoCommands
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