Expand description
Pluggable serializer registry for remote payloads. Core.
Every payload that crosses the wire carries a serializer_id and a
manifest (type name). On the receiving side those two fields key
into the SerializerRegistry to recover the original Rust type.
Built-in serializers:
| id | name | wire format |
|---|---|---|
| 0 | system | bincode (control) |
| 1 | bincode | bincode v2 + serde |
| 2 | json | serde_json |
Structs§
- Serializer
Registry - Per-system registry mapping a
manifestto aTypeCodec. - Type
Codec - Closure pair that knows how to encode/decode one Rust type to/from
wire bytes. The registry maps a
manifest(type name) to one of these.
Enums§
Constants§
Functions§
- bincode_
decode - bincode_
encode - json_
decode - json_
encode - system_
decode - system_
encode - System control payloads use the same bincode codec but a reserved
serializer_idofSYSTEM_SERIALIZER_IDso receivers can dispatch them on the system path without consulting the user manifest table.