pub struct CommandComplete<'a> {
pub num_hci_cmd_pkts: u8,
pub cmd_opcode: Opcode,
pub bytes: RemainingBytes<'a>,
}Expand description
Command Complete event ๐
Fieldsยง
ยงnum_hci_cmd_pkts: u8num_hci_cmd_pkts
cmd_opcode: Opcodecmd_opcode
bytes: RemainingBytes<'a>bytes
Implementationsยง
Sourceยงimpl CommandComplete<'_>
impl CommandComplete<'_>
Sourcepub fn has_status(&self) -> bool
pub fn has_status(&self) -> bool
Whether or not this event has a status
Trait Implementationsยง
Sourceยงimpl<'a> Clone for CommandComplete<'a>
impl<'a> Clone for CommandComplete<'a>
Sourceยงfn clone(&self) -> CommandComplete<'a>
fn clone(&self) -> CommandComplete<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl<'a> Debug for CommandComplete<'a>
impl<'a> Debug for CommandComplete<'a>
Sourceยงimpl<'a> EventParams<'a> for CommandComplete<'a>
impl<'a> EventParams<'a> for CommandComplete<'a>
Sourceยงconst EVENT_CODE: u8 = 0x0e
const EVENT_CODE: u8 = 0x0e
The event code these parameters are for
Sourceยงimpl<'a> FromHciBytes<'a> for CommandComplete<'a>
impl<'a> FromHciBytes<'a> for CommandComplete<'a>
Sourceยงfn from_hci_bytes(data: &'a [u8]) -> Result<(Self, &'a [u8]), FromHciBytesError>
fn from_hci_bytes(data: &'a [u8]) -> Result<(Self, &'a [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Sourceยงfn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Sourceยงimpl<'a> Hash for CommandComplete<'a>
impl<'a> Hash for CommandComplete<'a>
Sourceยงimpl<'d> TryFrom<CommandComplete<'d>> for CommandCompleteWithStatus<'d>
impl<'d> TryFrom<CommandComplete<'d>> for CommandCompleteWithStatus<'d>
Sourceยงtype Error = FromHciBytesError
type Error = FromHciBytesError
The type returned in the event of a conversion error.
Sourceยงfn try_from(
e: CommandComplete<'d>,
) -> Result<CommandCompleteWithStatus<'d>, Self::Error>
fn try_from( e: CommandComplete<'d>, ) -> Result<CommandCompleteWithStatus<'d>, Self::Error>
Performs the conversion.
impl<'a> Copy for CommandComplete<'a>
Auto Trait Implementationsยง
impl<'a> Freeze for CommandComplete<'a>
impl<'a> RefUnwindSafe for CommandComplete<'a>
impl<'a> Send for CommandComplete<'a>
impl<'a> Sync for CommandComplete<'a>
impl<'a> Unpin for CommandComplete<'a>
impl<'a> UnsafeUnpin for CommandComplete<'a>
impl<'a> UnwindSafe for CommandComplete<'a>
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