Module ops

Module ops 

Expand description

Serializable operations for mutating session state.

ModulesΒ§

buf πŸ”’ alloc
op_code πŸ”’
slice πŸ”’

StructsΒ§

SessionOps
A validated byte slice known to contain a well-formed sequence of encoded SessionOps.
SessionOpsBufalloc
A heap-backed, owned buffer of encoded SessionOps.
SessionOpsIter
Iterator over operations in a SessionOps buffer.

EnumsΒ§

OpDecodeError
Why encoded journal-op bytes could not be decoded.
SessionOp
A single mutation to session state, in a form that can be serialized and replayed.

ConstantsΒ§

SUBSCRIPTION_LEN πŸ”’
Options (1) + subscription id (4). The id uses 0 to mean β€œabsent” since real values are in 1..=268_435_455 (Β§3.8.2.1.2).

FunctionsΒ§

decode_filter_state πŸ”’
decode_store_filter πŸ”’
decode_store_outbox πŸ”’
decode_subscription πŸ”’
decode_u32_prefixed πŸ”’
encode_filter πŸ”’
encode_filter_state πŸ”’
encode_publish πŸ”’
encode_subscription πŸ”’
encode_u32_prefixed πŸ”’
encoded_publish_len πŸ”’
encoded_state_len πŸ”’
read_filter πŸ”’
read_packet_id πŸ”’
u32_prefixed_encoded_len πŸ”’