Trait rustic_core::WriteBackend
source · pub trait WriteBackend: ReadBackend {
// Required methods
fn create(&self) -> Result<()>;
fn write_bytes(
&self,
tpe: FileType,
id: &Id,
cacheable: bool,
buf: Bytes
) -> Result<()>;
fn remove(&self, tpe: FileType, id: &Id, cacheable: bool) -> Result<()>;
}
Expand description
Trait for backends that can write. This trait is implemented by all backends that can write data.