JobInitializer

Trait JobInitializer 

Source
pub trait JobInitializer:
    Send
    + Sync
    + 'static {
    // Required methods
    fn job_type() -> JobType
       where Self: Sized;
    fn init(&self, job: &Job) -> Result<Box<dyn JobRunner>, Box<dyn Error>>;

    // Provided method
    fn retry_on_error_settings() -> RetrySettings
       where Self: Sized { ... }
}

Required Methods§

Source

fn job_type() -> JobType
where Self: Sized,

Source

fn init(&self, job: &Job) -> Result<Box<dyn JobRunner>, Box<dyn Error>>

Provided Methods§

Implementors§