Struct r3_core::kernel::hook::StartupHook
source · 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
sourceimpl<System: KernelBase> StartupHook<System>
impl<System: KernelBase> StartupHook<System>
sourcepub const fn define() -> StartupHookDefiner<System>
pub const fn define() -> StartupHookDefiner<System>
Construct a StartupHookDefiner
to register a startup hook in
a configuration function.
Auto Trait Implementations
impl<System> RefUnwindSafe for StartupHook<System>
impl<System> Send for StartupHook<System>
impl<System> Sync for StartupHook<System>
impl<System> Unpin for StartupHook<System>
impl<System> UnwindSafe for StartupHook<System>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more