experiment with Store/FileLockEntry
This commit is contained in:
parent
efd72d65a1
commit
0f77c9d3d8
3 changed files with 13 additions and 4 deletions
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
||||||
authors = ["mario <mario-krehl@gmx.de>"]
|
authors = ["mario <mario-krehl@gmx.de>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
semver = "0.2"
|
||||||
task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" }
|
task-hookrs = { git = "https://github.com/matthiasbeyer/task-hookrs.git" }
|
||||||
|
|
||||||
[dependencies.libimagstore]
|
[dependencies.libimagstore]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
extern crate semver;
|
||||||
|
|
||||||
extern crate task_hookrs;
|
extern crate task_hookrs;
|
||||||
#[macro_use] extern crate libimagstore;
|
#[macro_use] extern crate libimagstore;
|
||||||
|
|
|
@ -4,10 +4,17 @@ use task_hookrs::task::Task as TTask;
|
||||||
|
|
||||||
use libimagstore::store::FileLockEntry;
|
use libimagstore::store::FileLockEntry;
|
||||||
|
|
||||||
pub struct Task {
|
#[derive(Debug)]
|
||||||
uuid : str,
|
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 : {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue