tokio_cron_scheduler

Trait NotificationStore

Source
pub trait NotificationStore: DataStore<NotificationData> + InitStore {
    // Required methods
    fn list_notification_guids_for_job_and_state(
        &mut self,
        job: Uuid,
        state: JobState,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>, JobSchedulerError>> + Send>>;
    fn list_notification_guids_for_job_id(
        &mut self,
        job_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>, JobSchedulerError>> + Send>>;
    fn delete_notification_for_state(
        &mut self,
        notification_id: Uuid,
        state: JobState,
    ) -> Pin<Box<dyn Future<Output = Result<bool, JobSchedulerError>> + Send>>;
    fn delete_for_job(
        &mut self,
        job_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<(), JobSchedulerError>> + Send>>;
}

Required Methods§

Source

fn list_notification_guids_for_job_and_state( &mut self, job: Uuid, state: JobState, ) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>, JobSchedulerError>> + Send>>

Source

fn list_notification_guids_for_job_id( &mut self, job_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<Uuid>, JobSchedulerError>> + Send>>

Source

fn delete_notification_for_state( &mut self, notification_id: Uuid, state: JobState, ) -> Pin<Box<dyn Future<Output = Result<bool, JobSchedulerError>> + Send>>

Source

fn delete_for_job( &mut self, job_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), JobSchedulerError>> + Send>>

Implementors§