Skip to main content

Module lifecycle

Module lifecycle 

Source
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 with unsafe fn(*mut c_void) -> TransitionResult callbacks, for bridging the C FFI (no_std)

Structs§

LifecyclePollingNode
Standalone lifecycle state machine for no_std environments.
LifecyclePollingNodeCtx
Lifecycle state machine with unsafe fn(*mut c_void) -> TransitionResult callbacks.

Enums§

LifecycleCallbackSlot
Which transition callback slot to register in LifecyclePollingNodeCtx::register.
LifecycleError
Error type for lifecycle transitions.

Type Aliases§

LifecycleCallbackFn
Lifecycle callback function pointer (no_std compatible).
LifecycleCallbackFnCtx
Lifecycle callback taking a user context pointer (no_std, C FFI shape).