Expand description
Sparse extensions, open variants, and explicit message projections. Sparse extension fields, open variants and bounded message projections.
The sparse Wire projection stages and projects typed extension records and
tuples through supported containers. Applications can also project open
cases and recovery envelopes explicitly. Projected calls share Wire’s
admission across the complete Serde value and typed envelope contents.
Structs§
- Extension
Slot - The final extension block of an evolvable record, with the associated set of field IDs retained in the Rust type.
- Extensions
- An opaque ordered collection of extension fields, represented as Postcard bytes.
- Extensions
Writer - Write sorted extension IDs into caller-owned scratch storage.
- Field
- A bounded field or variant payload borrowed from an admitted envelope.
- Method
- Bind an export name, direction limits and Rust DTOs to Wire frames.
- Opaque
Open - An optional open variant with a stable numeric ID and opaque payload.
- Open
Slot - An open variant carrying the declaration of the cases the reader knows.
Set
REQUIREDto propagate unknown tags to the nearest recovering scope. - Projected
- A manually projected message with a positional core and a sparse root block.
- Projected
Output - The caller’s destination for one projected Serde write.
- Read
Context - Admission context for one projection. It borrows the outer decode’s meter.
- Recover
Slot - An optional, length-bounded payload that can recover an unknown required case.
- Recoverable
- A Postcard option containing a bounded, borrowed Postcard payload.
- Recovery
Context - Projection scope that records unknown required tags and missing required fields.
- Write
Context - Admission context for envelope preparation on the outer encoder’s meter.
Traits§
- Evolving
- A value with typed encoding and projection through the evolutionary codec.
Functions§
- decode
- Admit and decode one complete Wire message with its typed projection.
- decode_
projected - Decode the outer Serde DTO and project its envelopes under one budget.
- encode
- Encode a complete Wire message into owned output.
- encode_
into - Encode a complete Wire message into reusable output.
- encode_
projected_ into - Prepare envelopes in caller-owned scratch space and encode the resulting DTO.
- encode_
projected_ to_ slice - Prepare envelopes and encode the DTO once into caller-owned output.
- encode_
projected_ to_ slice_ with - Encode a DTO that borrows its projection context into caller-owned output.
- encode_
to_ slice - Encode a derived Wire message directly into caller-owned output.
- projected_
len - Measure an already projected message, including its root block and any frame header. Preparation of the projected fields uses the caller’s staging allowance.