pub trait ContentStore {
// Required methods
fn put(&self, key: &InputHash, bytes: &[u8]) -> Result<(), Error>;
fn get(&self, key: &InputHash) -> Result<Option<Vec<u8>>, Error>;
// Provided method
fn contains(&self, key: &InputHash) -> Result<bool, Error> { ... }
}Expand description
A store that maps an InputHash to opaque artifact bytes.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".