Expand description
Binary payloads shared by content hash, with source spelling retained per use.
use rig_ecs::agent::content::binary::BinaryAssets;
let mut assets = BinaryAssets::default();
let id = assets.insert(vec![1, 2, 3])?;
assert_eq!(assets.get(id)?, &[1, 2, 3]);Structs§
- Binary
Assets - One world’s binary payload store. Explicit collection keeps only caller-supplied reachable handles; graph ownership, not a run’s lifetime, determines reachability. Host pins must be included along with graph references when collecting.
- Binary
Id - SHA-256 of the decoded payload bytes, independent of source and media type.
- Binary
Limits - Limits checked before decoding or retaining an additional binary payload.
- Binary
Record - A single scene payload. Canonical base64 stores the bytes once; graph uses retain their own raw/base64 representation in BinaryEncoding.
Enums§
- Binary
Encoding - Representation at a particular use of a shared binary payload.
- Binary
Error - Why a binary source or persisted asset cannot be used. Diagnostics contain no payload.
- Part
Source - A part’s source. URLs, file IDs, string data and unknown sources remain data; only raw and base64 binary payloads refer to the store.