pub trait NodeStoreScan: Send + Sync {
type Error: Error + Send + Sync + 'static;
// Required method
fn list_node_cids(&self) -> Result<Vec<Cid>, Self::Error>;
}Expand description
Storage backends that can enumerate content-addressed node CIDs.
This trait is separate from Store so simple point-read stores do not
need to expose backend-wide scans. Implementations must return only node
CIDs, not performance hints, root manifests, or other metadata keys.
Required Associated Types§
Required Methods§
Sourcefn list_node_cids(&self) -> Result<Vec<Cid>, Self::Error>
fn list_node_cids(&self) -> Result<Vec<Cid>, Self::Error>
List all content-addressed node CIDs currently known to the store.
The returned CIDs should be sorted by raw CID bytes for deterministic GC planning. Implementations should return an error if the node namespace contains a malformed non-CID key.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".