pub trait JobLifecycleObserver: Send + Sync {
// Provided methods
fn on_job_running<'life0, 'async_trait>(
&'life0 self,
_event: JobRunningEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_job_succeeded<'life0, 'async_trait>(
&'life0 self,
_event: JobSucceededEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_job_failed<'life0, 'async_trait>(
&'life0 self,
_event: JobFailedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_job_completion_persist_failed<'life0, 'async_trait>(
&'life0 self,
_event: JobCompletionPersistFailedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_job_lease_lost<'life0, 'async_trait>(
&'life0 self,
_event: JobLeaseLostEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_job_lease_reaped<'life0, 'async_trait>(
&'life0 self,
_event: JobLeaseReapedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}Provided Methods§
fn on_job_running<'life0, 'async_trait>(
&'life0 self,
_event: JobRunningEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_job_succeeded<'life0, 'async_trait>(
&'life0 self,
_event: JobSucceededEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_job_failed<'life0, 'async_trait>(
&'life0 self,
_event: JobFailedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_job_completion_persist_failed<'life0, 'async_trait>(
&'life0 self,
_event: JobCompletionPersistFailedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_job_lease_lost<'life0, 'async_trait>(
&'life0 self,
_event: JobLeaseLostEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_job_lease_reaped<'life0, 'async_trait>(
&'life0 self,
_event: JobLeaseReapedEvent,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".