1
0
Fork 0

Draft for well_known tasks

This commit is contained in:
Malte Brandy 2018-06-10 01:07:31 +02:00
parent 7e59ae3423
commit 587b98236f
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View 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
}