Rename read to retrieve

This commit is contained in:
Marcel Müller 2016-01-16 18:26:54 +01:00
parent 52f70e5b71
commit 5ab6327d97
No known key found for this signature in database
GPG Key ID: DD4ED37D0CAC76E2
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ impl Store for FSStore {
unimplemented!()
}
fn read(&self, path: PathBuf) -> Result<Arc<RwLock<Entry>>> {
fn retrieve(&self, path: PathBuf) -> Result<Arc<RwLock<Entry>>> {
unimplemented!()
}

View File

@ -16,7 +16,7 @@ pub trait Store {
fn location(&self) -> &PathBuf;
fn create(&self, entry: Entry) -> Result<()>;
fn read(&self, path: PathBuf) -> Result<Arc<RwLock<Entry>>>;
fn retrieve(&self, path: PathBuf) -> Result<Arc<RwLock<Entry>>>;
fn update(&self, entry: Arc<RwLock<Entry>>) -> Result<()>;
fn retrieve_copy(&self, id : String) -> Result<Entry>;
fn delete(&self, path: PathBuf) -> Result<()>;