pub trait TaskDao {
fn insert<'life0, 'life1, 'async_trait>(
&'life0 self,
raw: &'life1 RawTask
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
record_id: &'life1 u64
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_finished<'life0, 'async_trait>(
&'life0 self,
delay: i64
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn raw_to_error<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
err: &'life1 NatureError,
raw: &'life2 RawTask
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_overdue<'life0, 'async_trait>(
&'life0 self,
delay: i64,
limit: i64
) -> Pin<Box<dyn Future<Output = Result<Vec<RawTask>>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn update_execute_time<'life0, 'life1, 'async_trait>(
&'life0 self,
record_id: &'life1 u64,
delay: i64
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn finish_task<'life0, 'life1, 'async_trait>(
&'life0 self,
record_id: &'life1 u64
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn increase_times_and_delay<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 u64,
delay: i32
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
record_id: &'life1 u64
) -> Pin<Box<dyn Future<Output = Result<Option<RawTask>>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn reset<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 u64
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}