Module ops
Expand description
Serializable operations for mutating session state.
ModulesΒ§
StructsΒ§
- Session
Ops - A validated byte slice known to contain a well-formed sequence of
encoded
SessionOps. - Session
OpsBuf alloc - A heap-backed, owned buffer of encoded
SessionOps. - Session
OpsIter - Iterator over operations in a
SessionOpsbuffer.
EnumsΒ§
- OpDecode
Error - Why encoded journal-op bytes could not be decoded.
- Session
Op - 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