Add Store::new()
This commit is contained in:
parent
469bdd1d94
commit
345e1bffeb
1 changed files with 9 additions and 0 deletions
|
@ -114,6 +114,15 @@ pub struct Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Store {
|
impl Store {
|
||||||
|
|
||||||
|
/// Create a new Store object
|
||||||
|
pub fn new(location: PathBuf) -> Store {
|
||||||
|
Store {
|
||||||
|
location: location,
|
||||||
|
entries: Arc::new(RwLock::new(HashMap::new())),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Creates the Entry at the given location (inside the entry)
|
/// Creates the Entry at the given location (inside the entry)
|
||||||
pub fn create(&self, entry: Entry) -> Result<()> {
|
pub fn create(&self, entry: Entry) -> Result<()> {
|
||||||
unimplemented!();
|
unimplemented!();
|
||||||
|
|
Loading…
Reference in a new issue