Rename read to retrieve
This commit is contained in:
parent
52f70e5b71
commit
5ab6327d97
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ impl Store for FSStore {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read(&self, path: PathBuf) -> Result<Arc<RwLock<Entry>>> {
|
fn retrieve(&self, path: PathBuf) -> Result<Arc<RwLock<Entry>>> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ pub trait Store {
|
||||||
fn location(&self) -> &PathBuf;
|
fn location(&self) -> &PathBuf;
|
||||||
|
|
||||||
fn create(&self, entry: Entry) -> Result<()>;
|
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 update(&self, entry: Arc<RwLock<Entry>>) -> Result<()>;
|
||||||
fn retrieve_copy(&self, id : String) -> Result<Entry>;
|
fn retrieve_copy(&self, id : String) -> Result<Entry>;
|
||||||
fn delete(&self, path: PathBuf) -> Result<()>;
|
fn delete(&self, path: PathBuf) -> Result<()>;
|
||||||
|
|
Loading…
Reference in a new issue