MCPcopy Create free account
hub / github.com/HairlessVillager/minecommit / OdbReader

Interface OdbReader

minecommit/src/odb/mod.rs:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8use anyhow::Result;
9
10pub trait OdbReader {
11 fn get(&self, key: &str) -> Result<Vec<u8>>;
12 fn get_par(&self, keys: &[&str]) -> Result<Vec<Vec<u8>>>;
13 fn glob(&self, pattern: &str) -> Result<Vec<String>>;
14}
15pub trait OdbWriter: OdbReader {
16 fn put(&mut self, key: &str, value: impl AsRef<[u8]>) -> Result<()>;
17 fn put_par(

Callers

nothing calls this directly

Implementers 3

git.rsminecommit/src/odb/git.rs
fs.rsminecommit/src/odb/fs.rs
mod.rsminecommit/src/handler/mod.rs

Calls

no outgoing calls

Tested by

no test coverage detected