Macro r3::kernel::cfg::attach_phase2

source ·
pub macro attach_phase2($params:expr, impl CfgPhase2<$System:ty> for $Ty:ty $(,)?) {
    ...
}
Expand description

Implement CfgPhase2 on $Ty using the given $params: CfgPhase2Data<$System> to associate static data with the system type $System.

This macro produces static items and a CfgPhase2<$System> implementation for $Ty. It doesn’t support generics, which means this macro should be invoked in an application crate, where the concrete system type is known.

See KernelStatic’s documentation for an overview of the configuration process and the traits involved.