[−][src]Trait splinter::storage::Storage
Storage wrapper that ensures that changes to an object are persisted to a backing store
Achieves this by handing out RAII-guarded references to the underlying data, that ensure persistence when they get Dropped.
Associated Types
type S
Required methods
fn read<'a>(
&'a self
) -> Box<dyn StorageReadGuard<'a, Self::S, Target = Self::S> + 'a>
&'a self
) -> Box<dyn StorageReadGuard<'a, Self::S, Target = Self::S> + 'a>
fn write<'a>(
&'a mut self
) -> Box<dyn StorageWriteGuard<'a, Self::S, Target = Self::S> + 'a>
&'a mut self
) -> Box<dyn StorageWriteGuard<'a, Self::S, Target = Self::S> + 'a>