pub struct Guarded<C> { /* private fields */ }Expand description
Owns the controller on ESP32; on nRF it owns a forwarding borrow so the SDC and its hardware resources survive host-stack reconstruction.
Implementations§
Trait Implementations§
Source§impl<C: Controller> Controller for Guarded<C>
impl<C: Controller> Controller for Guarded<C>
Source§async fn write_acl_data(
&self,
packet: &AclPacket<'_>,
) -> Result<(), Self::Error>
async fn write_acl_data( &self, packet: &AclPacket<'_>, ) -> Result<(), Self::Error>
Write ACL data to the controller.
Source§async fn write_sync_data(
&self,
packet: &SyncPacket<'_>,
) -> Result<(), Self::Error>
async fn write_sync_data( &self, packet: &SyncPacket<'_>, ) -> Result<(), Self::Error>
Write Sync data to the controller.
Source§impl<C: ControllerCmdAsync<T>, T: AsyncCmd> ControllerCmdAsync<T> for Guarded<C>
impl<C: ControllerCmdAsync<T>, T: AsyncCmd> ControllerCmdAsync<T> for Guarded<C>
Source§impl<C, T> ControllerCmdSync<T> for Guarded<C>
impl<C, T> ControllerCmdSync<T> for Guarded<C>
Auto Trait Implementations§
impl<C> Freeze for Guarded<C>where
C: Freeze,
impl<C> !RefUnwindSafe for Guarded<C>
impl<C> Send for Guarded<C>where
C: Send,
impl<C> Sync for Guarded<C>where
C: Sync,
impl<C> Unpin for Guarded<C>where
C: Unpin,
impl<C> !UnwindSafe for Guarded<C>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more