Draft for well_known tasks
This commit is contained in:
parent
7e59ae3423
commit
587b98236f
1 changed files with 8 additions and 0 deletions
8
home-manager/packages/rust-scripts/src/well_known.rs
Normal file
8
home-manager/packages/rust-scripts/src/well_known.rs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
pub Trait {
|
||||||
|
fn definition() -> Task
|
||||||
|
fn is_task(&Task) -> bool
|
||||||
|
fn action_necessary(&TaskCache, State) -> Result<bool>
|
||||||
|
fn process(&mut TaskCache) -> Result<()>
|
||||||
|
fn refresh() -> refresh::Timer
|
||||||
|
}
|
Loading…
Reference in a new issue