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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl StorageWriter for MockStorageLoader
Available on crate features
mock only.