Expand description
Explicit resource admission for native Serde payloads in the same Postcard format.
Types, IDs, deterministic serialization and domain rules are consumer-owned.
This does not implement Wire for arbitrary types or infer a finite schema.
Custom Serde implementations are trusted: allocations/work outside visited
values cannot be constrained here. See the runtime guide for budget semantics.
Functionsยง
- decode
- Decode a complete canonical payload; allocation admission precedes visitor calls.
- decode_
request - Check request identity and direction before decoding its bounded native value.
- decode_
response - Check response identity and direction before decoding its bounded native value.
- encode
- Encode an owned or borrowed native payload under explicit traversal allowances.
- encode_
request - Encode a complete request;
limits.bytesincludes the canonical frame header. - encode_
response - Encode a complete response, including borrowed response projections.
- encoded_
frame_ len - Measure a request or response frame; both directions have equal header length.
- encoded_
len - Measure one native payload with no output allocation;
bytesexcludes a frame.