JobScheduler

Type Alias JobScheduler 

Source
pub type JobScheduler = JobScheduler;

Aliased Type§

pub struct JobScheduler {
    pub context: Arc<Context>,
    pub inited: Arc<AtomicBool>,
    pub job_creator: Arc<RwLock<JobCreator>>,
    pub job_deleter: Arc<RwLock<JobDeleter>>,
    pub job_runner: Arc<RwLock<JobRunner>>,
    pub notification_creator: Arc<RwLock<NotificationCreator>>,
    pub notification_deleter: Arc<RwLock<NotificationDeleter>>,
    pub notification_runner: Arc<RwLock<NotificationRunner>>,
    pub scheduler: Arc<RwLock<Scheduler>>,
    pub shutdown_notifier: Option<Arc<RwLock<Box<dyn FnMut() -> Pin<Box<dyn Future<Output = ()> + Send>> + Sync + Send>>>>,
}

Fields§

§context: Arc<Context>§inited: Arc<AtomicBool>§job_creator: Arc<RwLock<JobCreator>>§job_deleter: Arc<RwLock<JobDeleter>>§job_runner: Arc<RwLock<JobRunner>>§notification_creator: Arc<RwLock<NotificationCreator>>§notification_deleter: Arc<RwLock<NotificationDeleter>>§notification_runner: Arc<RwLock<NotificationRunner>>§scheduler: Arc<RwLock<Scheduler>>§shutdown_notifier: Option<Arc<RwLock<Box<dyn FnMut() -> Pin<Box<dyn Future<Output = ()> + Send>> + Sync + Send>>>>

Trait Implementations§

Source§

impl FromApp for JobScheduler

Source§

fn from_app<'life0, 'life1, 'life2, 'async_trait>( _job_id: &'life0 JobId, scheduler: &'life1 JobScheduler, _app: &'life2 App, ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,