Skip to main content

encode_time_event

Function encode_time_event 

Source
pub fn encode_time_event(
    event: &TimeEvent,
) -> Result<EncodedPayload, EncodeError>
Expand description

Encodes a fired [TimeEvent] into canonical bytes with no sidecar indices.

Time events carry a callback boundary rather than a cache-state key. The event store captures them for forensic ordering and deterministic replay inputs, while cache replay leaves clock re-arming to the later clock lifecycle event workstream.

ยงErrors

Returns EncodeError::Serialize when MessagePack rejects the payload.