pub struct StartupHook<System: KernelBase>(_);
Expand description

Represents a registered startup hook in a system.

There are no operations defined for startup hooks, so this type is only used for static configuration.

Startup hooks execute during the boot phase with CPU Lock active, after initializing kernel structures and before scheduling the first task.

Relation to Other Specifications: StartupHook (AUTOSAR OS, OSEK/VDX), last function (TI-RTOS), initialization routine (μITRON4.0).

Implementations

Construct a StartupHookDefiner to register a startup hook in a configuration function.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.