Trait ComponentSupport

Source
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§

Source

fn enable<T: Transports<Self::Mcu>>( component: C, context: Context<Self, T>, ) -> impl Future<Output = ()>

Enables the specified component for this device.

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.

Implementors§