pub struct HciEventWriter<'d, D: Driver<'d>> { /* private fields */ }Expand description
Sender handle for HCI events sent to the host over the Interrupt IN endpoint.
Implementations§
Source§impl<'d, D: Driver<'d>> HciEventWriter<'d, D>
impl<'d, D: Driver<'d>> HciEventWriter<'d, D>
Sourcepub async fn wait_connection(&mut self)
pub async fn wait_connection(&mut self)
Waits for the USB host to enable the Interrupt IN endpoint.
Sourcepub async fn send_event(&mut self, event: &[u8]) -> Result<(), EndpointError>
pub async fn send_event(&mut self, event: &[u8]) -> Result<(), EndpointError>
Send an HCI Event packet to the host.
Auto Trait Implementations§
impl<'d, D> Forget for HciEventWriter<'d, D>
impl<'d, D> Freeze for HciEventWriter<'d, D>
impl<'d, D> Move for HciEventWriter<'d, D>
impl<'d, D> RefUnwindSafe for HciEventWriter<'d, D>
impl<'d, D> Send for HciEventWriter<'d, D>
impl<'d, D> Sync for HciEventWriter<'d, D>
impl<'d, D> Unpin for HciEventWriter<'d, D>
impl<'d, D> UnsafeUnpin for HciEventWriter<'d, D>
impl<'d, D> UnwindSafe for HciEventWriter<'d, 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