[][src]Trait nature_db::TaskDao

pub trait TaskDao {
#[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
;
#[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
;
#[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
;
#[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
;
#[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
;
#[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
;
#[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
;
#[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
;
#[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
; }

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, 

#[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, 

#[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, 

#[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, 

#[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, 

#[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, 

#[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, 

#[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, 

#[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, 

Loading content...

Implementors

impl TaskDao for TaskDaoImpl[src]

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]

delete finished task after delay seconds

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]

increase one times and delay delay seconds

Loading content...