pub trait ComponentSupport<C: Component>: Device {
// Required method
fn enable<T: Transports<Self::Mcu>>(
component: C,
context: Context<Self, T>,
) -> impl Future<Output = ()>;
}Expand description
Trait for adding support of a component to a device.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.