Skip to main content

BlobStoreScan

Trait BlobStoreScan 

Source
pub trait BlobStoreScan: BlobStore {
    // Required method
    fn list_blob_refs(&self) -> Result<Vec<BlobRef>, Self::Error>;
}
Expand description

Blob stores that can enumerate known blob references.

This trait is separate from BlobStore so simple point-read blob stores do not need to expose backend-wide scans. Implementations should return content-addressed blob references, not temporary files or unrelated metadata.

Required Methods§

Source

fn list_blob_refs(&self) -> Result<Vec<BlobRef>, Self::Error>

List all known blob references.

Returned references should be sorted by raw CID bytes for deterministic garbage-collection planning.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: BlobStoreScan> BlobStoreScan for Arc<T>

Implementors§