Add Store::new()

This commit is contained in:
Matthias Beyer 2016-01-17 16:04:31 +01:00
parent 469bdd1d94
commit 345e1bffeb

View file

@ -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!();