Module static_cell

Module static_cell 

Source
Expand description

Init-once container for static declarations.

StaticCell<T> encapsulates the single unsafe pattern of “create once in on_init, use from any thread, destroy in on_shutdown” behind a safe API.

Structs§

StaticCell
A no_std init-once container designed for the oveRTOS lifecycle.
StaticMut
Like StaticCell but provides &mut T access through UnsafeCell.