Trait rsure::Store
[−]
[src]
pub trait Store { fn write_new(&self, tree: &SureTree, tags: &StoreTags) -> Result<()>; fn load(&self, version: Version) -> Result<SureTree>; fn get_versions(&self) -> Result<Vec<StoreVersion>>; }
Something that can store and retrieve SureTrees.
Required Methods
fn write_new(&self, tree: &SureTree, tags: &StoreTags) -> Result<()>
Write a new SureTree to the store. The store may write the tags in the version to help identify information about what was captured.
fn load(&self, version: Version) -> Result<SureTree>
Attempt to load a sure version, based on the descriptor given.
fn get_versions(&self) -> Result<Vec<StoreVersion>>
Retrieve the available versions, in the store. These should be listed, newest first.
Implementors
impl Store for BkStore