Expand description
Lifecycle node API (REP-2002)
Provides managed lifecycle state machines for nros nodes.
LifecyclePollingNode— standalone state machine with plain function pointers (no_std)LifecyclePollingNodeCtx— standalone state machine withunsafe fn(*mut c_void) -> TransitionResultcallbacks, for bridging the C FFI (no_std)
Structs§
- Lifecycle
Polling Node - Standalone lifecycle state machine for
no_stdenvironments. - Lifecycle
Polling Node Ctx - Lifecycle state machine with
unsafe fn(*mut c_void) -> TransitionResultcallbacks.
Enums§
- Lifecycle
Callback Slot - Which transition callback slot to register in
LifecyclePollingNodeCtx::register. - Lifecycle
Error - Error type for lifecycle transitions.
Type Aliases§
- Lifecycle
Callback Fn - Lifecycle callback function pointer (
no_stdcompatible). - Lifecycle
Callback FnCtx - Lifecycle callback taking a user context pointer (
no_std, C FFI shape).