Skip to main content

ObjectStore

Trait ObjectStore 

Source
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§

Source

fn put(&self, key: &str, body: &[u8]) -> Result<()>

Source

fn get(&self, key: &str) -> Result<Vec<u8>>

Source

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".

Implementors§