pub struct HciCommandReader<'d> { /* private fields */ }Expand description
Receiver handle for HCI commands sent by the host over the control endpoint.
Implementations§
Source§impl<'d> HciCommandReader<'d>
impl<'d> HciCommandReader<'d>
Sourcepub async fn read_command(
&mut self,
buf: &mut [u8],
) -> Result<usize, EndpointError>
pub async fn read_command( &mut self, buf: &mut [u8], ) -> Result<usize, EndpointError>
Await the next HCI command packet from the host.
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for HciCommandReader<'d>
impl<'d> !UnwindSafe for HciCommandReader<'d>
impl<'d> Forget for HciCommandReader<'d>
impl<'d> Freeze for HciCommandReader<'d>
impl<'d> Move for HciCommandReader<'d>
impl<'d> Send for HciCommandReader<'d>
impl<'d> Sync for HciCommandReader<'d>
impl<'d> Unpin for HciCommandReader<'d>
impl<'d> UnsafeUnpin for HciCommandReader<'d>
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