Expand description
Copper-friendly payload helpers used in task messages and task-local caches.
Payload types need to stay compatible with Copper’s preallocated message buffers,
deterministic logging, and no_std targets. This module therefore focuses on
fixed-capacity containers and explicit state-transition payloads such as
CuLatchedStateUpdate and CuLatchedState.
A latched state is useful when a value changes rarely, but consumers still need a
deterministic view of it during live execution, logging, and replay. Producers send
updates with CuLatchedStateUpdate, and each consumer keeps its own local cache in
CuLatchedState.
Structs§
- CuArray
- Copper friendly wrapper for a fixed size array.
T: Cloneis required because this type derivesReflect, and the reflection path requires the reflected value to be cloneable. - CuArray
Vec - A Copper-friendly wrapper around ArrayVec with bincode serialization support.
Enums§
- CuLatched
State - Consumer-side cache updated by
CuLatchedStateUpdate. - CuLatched
State Update - Producer-side update for a stateful value cached by downstream consumers.