Struct perlin::storage::FsStorage
[−]
[src]
pub struct FsStorage<TItem> { /* fields omitted */ }
Writes datastructures to a filesystem. Compressed and retrievable.
Trait Implementations
impl<TItem: ByteDecodable + ByteEncodable + Sync + Send> Storage<TItem> for FsStorage<TItem>
[src]
fn get(&self, id: u64) -> Result<Arc<TItem>>
Tries to get a value for a given Id. Returns an Error if read fails or if id is unknown. Read more
fn store(&mut self, id: u64, data: TItem) -> Result<()>
Tries to store a value with a given Id. Returns an Error if Write fails or if there is no more space. Read more