pub trait Backend: Send + Sync {
    fn write_object(&self, object: &WriteObject) -> Result<()>;
    fn read_object(&self, id: &ObjectId) -> Result<Arc<ReadObject>>;

    fn preload(&self, _objects: &[ObjectId]) -> Result<()> { ... }
    fn delete(&self, _objects: &[ObjectId]) -> Result<()> { ... }
    fn sync(&self) -> Result<()> { ... }
    fn read_fresh(&self, id: &ObjectId) -> Result<Arc<ReadObject>> { ... }
    fn keep_warm(&self, _objects: &[ObjectId]) -> Result<()> { ... }
}

Required Methods

Provided Methods

Implementors