pub trait StepExecutionListener: Send + Sync {
// Required methods
fn before_step<'a>(
&'a self,
context: ListenerContext<'a>,
) -> BoxFuture<'a, Result<(), ListenerError>>;
fn after_step<'a>(
&'a self,
context: ListenerContext<'a>,
outcome: TaskletExecutionOutcome,
) -> BoxFuture<'a, Result<(), ListenerError>>;
}Expand description
A dynamically dispatched step lifecycle listener.
Required Methods§
Sourcefn before_step<'a>(
&'a self,
context: ListenerContext<'a>,
) -> BoxFuture<'a, Result<(), ListenerError>>
fn before_step<'a>( &'a self, context: ListenerContext<'a>, ) -> BoxFuture<'a, Result<(), ListenerError>>
Runs before the step becomes STARTED.
Sourcefn after_step<'a>(
&'a self,
context: ListenerContext<'a>,
outcome: TaskletExecutionOutcome,
) -> BoxFuture<'a, Result<(), ListenerError>>
fn after_step<'a>( &'a self, context: ListenerContext<'a>, outcome: TaskletExecutionOutcome, ) -> BoxFuture<'a, Result<(), ListenerError>>
Runs after tasklet work has a provisional outcome and before the step receives its final status.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".