Skip to main content

StorageWriter

Trait StorageWriter 

Source
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§

Source

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§

Source§

impl StorageWriter for MockStorageLoader

Available on crate features mock only.
Source§

impl StorageWriter for NvmeStorageLoader