Skip to main content

encode_snapshot

Function encode_snapshot 

Source
pub fn encode_snapshot(snapshot: &TaskSnapshot) -> Bytes
Expand description

Encodes a task snapshot into the frozen container bytes.

The entries come out in ascending byte order of the store name, so the same snapshot always gives the same bytes.

ยงPanics

Panics when a store name or a payload is longer than u32::MAX bytes.