pub struct Context<D: Device, T: Transports<D::Mcu>> {
pub spawner: Spawner,
pub mcu: &'static D::Mcu,
pub internal_channel: Channel<DeviceTransport<D, T>>,
pub external_channel: Channel<DeviceTransport<D, T>>,
pub layer_manager: LayerManager,
}Fields§
§spawner: Spawner§mcu: &'static D::Mcu§internal_channel: Channel<DeviceTransport<D, T>>§external_channel: Channel<DeviceTransport<D, T>>§layer_manager: LayerManagerImplementations§
Source§impl<D: Device, T: Transports<D::Mcu>> Context<D, T>
impl<D: Device, T: Transports<D::Mcu>> Context<D, T>
pub fn as_dyn(&self) -> DynContext
pub async fn enable<C>(&self, component: C)where
C: Component,
D: ComponentSupport<C>,
Trait Implementations§
impl<D: Device, T: Transports<D::Mcu>> Copy for Context<D, T>
Auto Trait Implementations§
impl<D, T> Freeze for Context<D, T>
impl<D, T> RefUnwindSafe for Context<D, T>where
<D as Device>::Mcu: RefUnwindSafe,
<<T as Transports<<D as Device>::Mcu>>::InternalTransportConfig as TransportConfig<<D as Device>::Mcu>>::Transport: RefUnwindSafe,
<<T as Transports<<D as Device>::Mcu>>::ExternalTransportConfig as TransportConfig<<D as Device>::Mcu>>::Transport: RefUnwindSafe,
impl<D, T> !Send for Context<D, T>
impl<D, T> !Sync for Context<D, T>
impl<D, T> Unpin for Context<D, T>
impl<D, T> UnwindSafe for Context<D, T>where
<D as Device>::Mcu: RefUnwindSafe,
<<T as Transports<<D as Device>::Mcu>>::InternalTransportConfig as TransportConfig<<D as Device>::Mcu>>::Transport: RefUnwindSafe,
<<T as Transports<<D as Device>::Mcu>>::ExternalTransportConfig as TransportConfig<<D as Device>::Mcu>>::Transport: RefUnwindSafe,
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