Skip to main content

BlobCache

Trait BlobCache 

Source
pub trait BlobCache {
    // Required method
    fn contains(&self, hash: &str) -> bool;
}
Expand description

A read-only view of the local content-addressed blob cache, for dedup.

Required Methods§

Source

fn contains(&self, hash: &str) -> bool

Whether a blob with this content address is already cached.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§