Expand description
kithara-storage
Storage primitives for Kithara.
Provides a generic Resource<D> parameterized by a Driver:
MmapResource— mmap-backed (filesystem), with lock-free fast path.MemResource— in-memoryVec<u8>(WASM).
StorageResource is a unified enum combining both backends.
The consumer-facing trait is ResourceExt.
Structs§
- Atomic
- Decorator for crash-safe whole-file writes.
- Atomic
Chunked - Decorator for crash-safe chunked writes.
- MemDriver
- In-memory storage driver backed by a growable byte pool buffer.
- MemOptions
- Options for creating a
MemResource. - Mmap
Driver - Mmap-backed storage driver.
- Mmap
Options - Options for opening a
MmapResource. - Resource
- Generic storage resource parameterized by backend driver.
Enums§
- Open
Intent - Hint passed to the factory closure to disambiguate the two lifecycle calls.
- Open
Mode - Controls how
MmapDriveropens the backing file. - Resource
Status - Status of a resource.
- Storage
Error - Errors produced by storage primitives.
- Storage
Resource - Unified resource: disk (mmap) or memory backend.
- Wait
Outcome - Outcome of waiting for a byte range.
Traits§
- Availability
Observer - Observer notified when a
Resource<D>gains bytes or finalizes. - Driver
- Driver factory + I/O contract.
- Driver
Io - Backend-specific storage operations.
- Resource
Ext - Unified sync resource trait.
Type Aliases§
- MemResource
- In-memory storage resource.
- Mmap
Resource - Mmap-backed storage resource.
- Storage
Result - Result type used by
kithara-storage.