Trait ExecutableJob
Source pub trait ExecutableJob: Send + 'static {
// Required methods
fn pre_job_hook<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<ProceedWithExecution, JobError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn job<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), JobError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn post_job_hook<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), JobError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn catch<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided method
fn execute<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), JobError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
}