Skip to main content

Module payload

Module payload 

Source
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: Clone is required because this type derives Reflect, and the reflection path requires the reflected value to be cloneable.
CuArrayVec
A Copper-friendly wrapper around ArrayVec with bincode serialization support.

Enums§

CuLatchedState
Consumer-side cache updated by CuLatchedStateUpdate.
CuLatchedStateUpdate
Producer-side update for a stateful value cached by downstream consumers.