[−][src]Trait nature_db::TaskDao
Required methods
#[must_use]fn insert<'life0, 'life1, 'async_trait>(
&'life0 self,
raw: &'life1 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
raw: &'life1 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete_finished<'life0, 'async_trait>(
&'life0 self,
_delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
_delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn raw_to_error<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
err: &'life1 NatureError,
raw: &'life2 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
&'life0 self,
err: &'life1 NatureError,
raw: &'life2 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_overdue<'life0, 'async_trait>(
&'life0 self,
delay: i64,
_limit: i64
) -> Pin<Box<dyn Future<Output = Result<Vec<RawTask>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self,
delay: i64,
_limit: i64
) -> Pin<Box<dyn Future<Output = Result<Vec<RawTask>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn update_execute_time<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str,
delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
_record_id: &'life1 str,
delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn finish_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn increase_times_and_delay<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str,
delay: i32
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
_record_id: &'life1 str,
delay: i32
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<RawTask>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<RawTask>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementors
impl TaskDao for TaskDaoImpl
[src]
fn insert<'life0, 'life1, 'async_trait>(
&'life0 self,
raw: &'life1 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
raw: &'life1 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_finished<'life0, 'async_trait>(
&'life0 self,
_delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
delete finished task after delay
seconds
fn raw_to_error<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
err: &'life1 NatureError,
raw: &'life2 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
err: &'life1 NatureError,
raw: &'life2 RawTask
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
delay: i64,
_limit: i64
) -> Pin<Box<dyn Future<Output = Result<Vec<RawTask>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_execute_time<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str,
delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_record_id: &'life1 str,
delay: i64
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn finish_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn increase_times_and_delay<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str,
delay: i32
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_record_id: &'life1 str,
delay: i32
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
increase one times and delay delay
seconds
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<RawTask>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_record_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<RawTask>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,