pub struct Borrowed<'a, C>(pub &'a C);Tuple Fields§
§0: &'a CTrait Implementations§
Source§impl<C: Controller> Controller for Borrowed<'_, C>
impl<C: Controller> Controller for Borrowed<'_, C>
Source§async fn write_acl_data(&self, p: &AclPacket<'_>) -> Result<(), Self::Error>
async fn write_acl_data(&self, p: &AclPacket<'_>) -> Result<(), Self::Error>
Write ACL data to the controller.
Source§async fn write_sync_data(&self, p: &SyncPacket<'_>) -> Result<(), Self::Error>
async fn write_sync_data(&self, p: &SyncPacket<'_>) -> Result<(), Self::Error>
Write Sync data to the controller.
Source§impl<C: ControllerCmdAsync<T>, T: AsyncCmd> ControllerCmdAsync<T> for Borrowed<'_, C>
impl<C: ControllerCmdAsync<T>, T: AsyncCmd> ControllerCmdAsync<T> for Borrowed<'_, C>
Source§impl<C: ControllerCmdSync<T>, T: SyncCmd> ControllerCmdSync<T> for Borrowed<'_, C>
impl<C: ControllerCmdSync<T>, T: SyncCmd> ControllerCmdSync<T> for Borrowed<'_, C>
Auto Trait Implementations§
impl<'a, C> Freeze for Borrowed<'a, C>
impl<'a, C> RefUnwindSafe for Borrowed<'a, C>where
C: RefUnwindSafe,
impl<'a, C> Send for Borrowed<'a, C>where
C: Sync,
impl<'a, C> Sync for Borrowed<'a, C>where
C: Sync,
impl<'a, C> Unpin for Borrowed<'a, C>
impl<'a, C> UnwindSafe for Borrowed<'a, C>where
C: RefUnwindSafe,
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