pub trait ObjectStore {
// Required methods
fn put(&self, key: &str, body: &[u8]) -> Result<()>;
fn get(&self, key: &str) -> Result<Vec<u8>>;
fn list(&self, prefix: &str) -> Result<Vec<String>>;
}Required Methods§
fn put(&self, key: &str, body: &[u8]) -> Result<()>
fn get(&self, key: &str) -> Result<Vec<u8>>
fn list(&self, prefix: &str) -> Result<Vec<String>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".