Skip to main content

Module storage

Module storage 

Source
Expand description

Storage abstraction for Solid pods.

The Storage trait is the sole interface between the Solid protocol layer and concrete persistence backends. Implementations must be Send + Sync + 'static and safe for concurrent access.

Two backends ship with the crate:

  • memory::MemoryBackend — in-memory, ideal for tests.
  • fs::FsBackend — filesystem-rooted, uses tokio::fs and notify for change events.

Modules§

fs
Filesystem storage backend.
memory
In-memory storage backend.

Structs§

ResourceMeta
Metadata describing a resource stored in a pod.

Enums§

StorageEvent
Change events emitted by storage watchers.

Traits§

Storage
The storage abstraction. Implementations back a Solid pod with arbitrary persistence.