Expand description
zerompk (MessagePack) codec for SwimMessage.
Thin wrapper over zerompk::to_msgpack_vec / zerompk::from_msgpack
that maps codec errors into the typed SwimError so the failure
detector never sees raw zerompk errors.
The encode path is infallible in practice โ SwimMessage is composed
entirely of types with well-defined MessagePack representations โ but
the return type stays fallible so a future addition of a fallible
field cannot silently panic.
Functionsยง
- decode
- Decode a zerompk byte buffer into a
SwimMessage. Truncated or malformed input returnsSwimError::Decoderather than panicking. - encode
- Serialize a
SwimMessageinto a zerompk byte buffer.