Skip to main content

Module msgpack_encoder

Module msgpack_encoder 

Source
Expand description

§Encoder layout & naming convention

msgpack_encoder/
├── v04/
│   ├── mod.rs        // public API + payload-level helpers
│   ├── span_v04.rs   // v0.4 in-memory Span  → v0.4 wire (native)
│   └── span_v1.rs    // v1  in-memory Span  → v0.4 wire (downgrade)
└── v1/
    ├── mod.rs
    ├── span_v04.rs   // v0.4 in-memory Span  → V1 wire (upgrade)
    └── span_v1.rs    // v1  in-memory Span  → V1 wire (native)
  • Module (v04/v1) = output wire format.

  • File suffix (_v04/_v1) = input span type.

  • Public functions carry a _from_<input> suffix, so a caller reads the output from the module path and the input from the function name:

    ModuleFunctionInput → Output
    v04::to_vec_from_v04, write_to_slice_from_v04, to_encoded_byte_len_from_v04v04 → v0.4 (native)
    v04::to_vec_from_v1, write_to_slice_from_v1, to_encoded_byte_len_from_v1v1 → v0.4 (downgrade)
    v1::to_vec_from_v04, write_to_slice_from_v04, to_encoded_byte_len_from_v04v04 → V1 (upgrade)
    v1::to_vec_from_v1, write_to_slice_from_v1, to_encoded_byte_len_from_v1v1 → V1 (native)

Modules§

v04
v1