Struct perlin::storage::RamStorage
[−]
[src]
pub struct RamStorage<T> { /* fields omitted */ }
Stores anything in a BTreeMap
Trait Implementations
impl<T: Sync + Send> Storage<T> for RamStorage<T>
[src]
fn get(&self, id: u64) -> Result<Arc<T>>
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: T) -> 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