pub trait StorageWriter: Send + Sync {
// Required method
fn write(
&self,
key: &str,
data: &[u8],
) -> Result<MmapFileHandle, StorageError>;
}Expand description
Writes opaque bytes to storage and returns a readable mmap handle.
Required Methods§
Sourcefn write(&self, key: &str, data: &[u8]) -> Result<MmapFileHandle, StorageError>
fn write(&self, key: &str, data: &[u8]) -> Result<MmapFileHandle, StorageError>
Writes data under key.
Implementors§
impl StorageWriter for MockStorageLoader
Available on crate features
mock only.