pub trait ObjectBackend: Send + Sync {
// Required methods
fn contains(&self, id: ObjectId) -> Result<bool>;
fn read(
&self,
id: ObjectId,
max_object_bytes: usize,
) -> Result<Option<Object>>;
}Required Methods§
fn contains(&self, id: ObjectId) -> Result<bool>
fn read(&self, id: ObjectId, max_object_bytes: usize) -> Result<Option<Object>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".