Expand description
Wire types and constants shared by mbx remote cache clients and servers.
These records are protocol-owned: changing their serialized shape or a framing constant is a wire-format change. Transport, authentication, local storage, and adapter behavior deliberately live outside this crate.
Structs§
- Action
Kind Capability - Schemas supported for one action adapter.
- Action
Prediction - Adapter-owned data needed to reconstruct an action from a prior task run.
- Action
Result - A canonical action-result record referencing objects in the CAS.
- Capabilities
- Cache service capabilities negotiated before optional protocol features.
- Capability
Features - Optional server protocol features.
- Capability
Limits - Server-advertised request and object limits.
- Capability
Protocol - Version advertised by a cache service.
- Digest
- Algorithm-tagged digest and exact byte length of a cache object.
- Directory
- A canonical directory object stored in the CAS.
- Directory
Node - A child directory entry in a canonical cache directory.
- File
Node - A file entry in a canonical cache directory.
- Parse
Digest Algorithm Error - A digest algorithm name was outside the version-one contract.
- Rustc
Metadata - Rust-specific action metadata stored alongside compiled outputs.
- Symlink
Node - A symbolic-link entry in a canonical cache directory.
- Task
Action Manifest - Predictions associated with one stable task identity.
Enums§
- Digest
Algorithm - Hash algorithms supported by protocol version one.
Constants§
- ACTION_
RESULT_ MEDIA_ TYPE - Media type for canonical
ActionResultJSON records. - BLOB_
MEDIA_ TYPE - Media type for opaque content-addressed blobs.
- BLOB_
PACK_ BLOBS_ HEADER - Header declaring the number of blobs in a blob pack.
- BLOB_
PACK_ BYTES_ HEADER - Header declaring the total payload bytes in a blob pack.
- BLOB_
PACK_ HEADER_ BYTES - Bytes before each blob pack payload: algorithm, hash, and length.
- BLOB_
PACK_ MAGIC - Magic prefix identifying a version-one blob pack.
- BLOB_
PACK_ MEDIA_ TYPE - Media type for framed batches of content-addressed blobs.
- CLIENT_
METADATA_ MEDIA_ TYPE - Media type for adapter-specific action metadata blobs.
- DIGEST_
LIST_ MEDIA_ TYPE - Media type for a JSON list of digests.
- DIRECTORY_
MEDIA_ TYPE - Media type for canonical
DirectoryJSON records. - MAX_
ACTION_ PREDICTION_ PAYLOAD - Maximum serialized adapter payload in one action prediction.
- MAX_
BATCH_ ITEMS - Maximum number of digests in a batch request supported by the protocol.
- MAX_
TASK_ ACTION_ PREDICTIONS - Maximum predictions carried by one task action manifest.
- NAMESPACE_
HEADER - Header carrying the caller’s isolated cache namespace.
- PROTOCOL_
HEADER - Header carrying the negotiated cache protocol version.
- PROTOCOL_
VERSION - Major version of the HTTP cache protocol.
- TASK_
ACTION_ MANIFEST_ MEDIA_ TYPE - Media type for task-to-action prediction manifests.
Functions§
- canonical_
json - Serialize a protocol record using the JSON Canonicalization Scheme.