experiment with Store/FileLockEntry

This commit is contained in:
mario 2016-05-04 15:00:48 +02:00
parent efd72d65a1
commit 0f77c9d3d8
3 changed files with 13 additions and 4 deletions

View file

@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["mario <mario-krehl@gmx.de>"]
[dependencies]
semver = "0.2"
task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" }
[dependencies.libimagstore]

View file

@ -1,3 +1,4 @@
extern crate semver;
extern crate task_hookrs;
#[macro_use] extern crate libimagstore;

View file

@ -4,10 +4,17 @@ use task_hookrs::task::Task as TTask;
use libimagstore::store::FileLockEntry;
pub struct Task {
uuid : str,
#[derive(Debug)]
pub struct Task<'a> {
flentry : FileLockEntry<'a>,
}
impl Deref<FileLockEntry> for Task {
impl<'a> From<TTask> for Task<'a> {
fn from(ttask : TTask) -> Task<'a> {
Task {
flentry : {
}
}
}
}