pub struct ControlRunner<'d, C, P: PacketPool> { /* private fields */ }
Expand description
The control part of the host runner.
Implementations§
Source§impl<'d, C: Controller, P: PacketPool> ControlRunner<'d, C, P>
impl<'d, C: Controller, P: PacketPool> ControlRunner<'d, C, P>
Sourcepub async fn run(&mut self) -> Result<(), BleHostError<C::Error>>where
C: ControllerCmdSync<Disconnect> + ControllerCmdSync<SetEventMask> + ControllerCmdSync<SetEventMaskPage2> + ControllerCmdSync<LeSetEventMask> + ControllerCmdSync<LeSetRandomAddr> + ControllerCmdSync<HostBufferSize> + ControllerCmdAsync<LeConnUpdate> + ControllerCmdSync<LeReadFilterAcceptListSize> + ControllerCmdSync<SetControllerToHostFlowControl> + ControllerCmdSync<Reset> + ControllerCmdSync<LeCreateConnCancel> + for<'t> ControllerCmdSync<LeSetAdvEnable> + for<'t> ControllerCmdSync<LeSetExtAdvEnable<'t>> + ControllerCmdSync<LeSetScanEnable> + ControllerCmdSync<LeSetExtScanEnable> + for<'t> ControllerCmdSync<HostNumberOfCompletedPackets<'t>> + ControllerCmdSync<LeReadBufferSize> + ControllerCmdSync<LeLongTermKeyRequestReply> + ControllerCmdAsync<LeEnableEncryption> + ControllerCmdSync<ReadBdAddr>,
pub async fn run(&mut self) -> Result<(), BleHostError<C::Error>>where
C: ControllerCmdSync<Disconnect> + ControllerCmdSync<SetEventMask> + ControllerCmdSync<SetEventMaskPage2> + ControllerCmdSync<LeSetEventMask> + ControllerCmdSync<LeSetRandomAddr> + ControllerCmdSync<HostBufferSize> + ControllerCmdAsync<LeConnUpdate> + ControllerCmdSync<LeReadFilterAcceptListSize> + ControllerCmdSync<SetControllerToHostFlowControl> + ControllerCmdSync<Reset> + ControllerCmdSync<LeCreateConnCancel> + for<'t> ControllerCmdSync<LeSetAdvEnable> + for<'t> ControllerCmdSync<LeSetExtAdvEnable<'t>> + ControllerCmdSync<LeSetScanEnable> + ControllerCmdSync<LeSetExtScanEnable> + for<'t> ControllerCmdSync<HostNumberOfCompletedPackets<'t>> + ControllerCmdSync<LeReadBufferSize> + ControllerCmdSync<LeLongTermKeyRequestReply> + ControllerCmdAsync<LeEnableEncryption> + ControllerCmdSync<ReadBdAddr>,
Run the control loop for the host
Auto Trait Implementations§
impl<'d, C, P> Freeze for ControlRunner<'d, C, P>
impl<'d, C, P> !RefUnwindSafe for ControlRunner<'d, C, P>
impl<'d, C, P> !Send for ControlRunner<'d, C, P>
impl<'d, C, P> !Sync for ControlRunner<'d, C, P>
impl<'d, C, P> Unpin for ControlRunner<'d, C, P>
impl<'d, C, P> !UnwindSafe for ControlRunner<'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