imag/libimagstore/src/store.rs

33 lines
542 B
Rust
Raw Normal View History

2016-01-12 17:52:03 +00:00
use std::path::PathBuf;
use std::result::Result as RResult;
pub use entry::Entry;
pub use error::StoreError;
pub type Result<T> = RResult<T, StoreError>;
pub struct Store {
location: PathBuf,
}
impl Store {
pub fn create(entry: Entry) -> Result<()> {
unimplemented!()
}
pub fn read(path: PathBuf) -> Result<Entry> {
unimplemented!()
}
pub fn update(entry: Entry) -> Result<()> {
unimplemented!()
}
pub fn delete(path: PathBuf) -> Result<()> {
unimplemented!()
}
}