pub struct RxRunner<'d, C, P: PacketPool> { /* private fields */ }
Expand description
The receiver part of the host runner.
Implementations§
Source§impl<'d, C: Controller, P: PacketPool> RxRunner<'d, C, P>
impl<'d, C: Controller, P: PacketPool> RxRunner<'d, C, P>
Sourcepub async fn run(&mut self) -> Result<(), BleHostError<C::Error>>where
C: ControllerCmdSync<Disconnect>,
pub async fn run(&mut self) -> Result<(), BleHostError<C::Error>>where
C: ControllerCmdSync<Disconnect>,
Run the receive loop that polls the controller for events.
Sourcepub async fn run_with_handler<E: EventHandler>(
&mut self,
event_handler: &E,
) -> Result<(), BleHostError<C::Error>>where
C: ControllerCmdSync<Disconnect>,
pub async fn run_with_handler<E: EventHandler>(
&mut self,
event_handler: &E,
) -> Result<(), BleHostError<C::Error>>where
C: ControllerCmdSync<Disconnect>,
Runs the receive loop that pools the controller for events, dispatching vendor events to the provided closure.
Auto Trait Implementations§
impl<'d, C, P> Freeze for RxRunner<'d, C, P>
impl<'d, C, P> !RefUnwindSafe for RxRunner<'d, C, P>
impl<'d, C, P> !Send for RxRunner<'d, C, P>
impl<'d, C, P> !Sync for RxRunner<'d, C, P>
impl<'d, C, P> Unpin for RxRunner<'d, C, P>
impl<'d, C, P> !UnwindSafe for RxRunner<'d, C, P>
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