Skip to main content

BlobReader

Trait BlobReader 

pub trait BlobReader {
    // Required method
    fn read(&mut self, path: &str) -> Result<Option<Vec<u8>>>;
}
Expand description

Reads many blobs at one revision without re-resolving rev→commit→ root-tree per call. The HEAD-time scans build one per rayon worker via map_init; it holds thread-local state, is NOT Send, and must stay on its worker thread.

Required Methods§

fn read(&mut self, path: &str) -> Result<Option<Vec<u8>>>

Same bytes as Repo::read_blob_at(rev, path)Ok(None) means the path isn’t a tracked blob at this reader’s revision.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§