Expand description
Round-trip conversion between the recursive in-memory schema model in
super and the flat, index-based wire types from the
golem:core@2.0.0 WIT package.
The wire types themselves are generated in this crate. The active generated
module is selected by the mutually-exclusive guest and host features and
re-exported through wire.
Modules§
Structs§
- Graph
Decoder - Decoder for a single flat
wire::SchemaGraphthat holds several independent root types (the agent-layer carrier produced bycrate::schema::wit::GraphEncoder). Decodes the shareddefsonce and then anytype-node-indexinto a recursiveSchemaType. - Graph
Encoder - Incremental builder for a single flat
wire::SchemaGraphthat holds several independent root types in one sharedtype-nodespool. - Guest
Permission Card Handle - Guest
Quota Token Handle - Guest
Secret Handle
Enums§
- Decode
Error - Errors that can occur while decoding the flat wire form into the recursive in-memory representation.
- Encode
Error - Errors that can occur while encoding a recursive schema graph / value into the flat wire form.
Functions§
- datetime_
from_ wire - datetime_
to_ wire - decode_
graph - decode_
metadata - decode_
typed - decode_
typed_ owned - Decode a typed value on a guest while consuming its wire representation.
- decode_
value - Decode a value tree on a guest, consuming it so that each
quota-token-handlenode’s ownedown<quota-token>resource can be moved out into an opaquesuper::GuestQuotaTokenHandle. - encode_
graph - encode_
metadata - encode_
typed - encode_
typed_ async - encode_
typed_ owned - Encode a typed guest value while explicitly transferring any affine resources reachable from it into the returned wire representation.
- encode_
value - Encode a value tree on a guest, transferring each
SchemaValue::QuotaTokenowned handle into the wire tree as aquota-token-handlenode. - encode_
value_ async - Encode a guest value tree containing arbitrary recursive stream leaves. Native readers are wrapped without reading from them before the normal failure-atomic affine lowering pass transfers all resources at once.
- new_
schema_ value_ stream - Create a native Component Model stream carrying schema value trees.
- uuid_
from_ wire - uuid_
to_ wire