Expand description
Chunk storage traits and implementations.
Async traits (ChunkGet, ChunkPut, ChunkHas) are the primary API.
Sync traits (SyncChunkGet, SyncChunkPut, SyncChunkHas) are helpers
for CPU-bound paths (splitter, mantaray). Blanket impls bridge sync → async
automatically for types that are Send + Sync.
Structs§
- Memory
Store - In-memory chunk storage using a
RwLock<HashMap>. - Null
Loader - A no-op loader that always returns
ChunkStoreError::NotFound.
Enums§
- Chunk
Store Error - Errors from chunk storage operations.
Traits§
- Chunk
Get - Async chunk retrieval (primary API).
- Chunk
Has - Async chunk existence check (primary API).
- Chunk
Put - Async chunk storage (primary API,
&self). - Sync
Chunk Get - Retrieves chunks by address (synchronous).
- Sync
Chunk Has - Checks chunk existence (synchronous).
- Sync
Chunk Put - Stores chunks (synchronous,
&self— implementors use interior mutability).