Skip to main content

After

Trait After 

Source
pub trait After<C, R, O, E> {
    // Required method
    fn run_after(
        &self,
        context: &mut C,
        output: &mut O,
        resources: &mut R,
    ) -> Result<(), StageError<E>>;
}
Expand description

Runs optional logic after a command succeeds.

Required Methods§

Source

fn run_after( &self, context: &mut C, output: &mut O, resources: &mut R, ) -> Result<(), StageError<E>>

Runs the after stage with mutable access to the command output.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C, R, O, E, F, Params> After<C, R, O, E> for AfterFn<F, Params>
where F: AfterHandler<C, R, O, E, Params>,

Source§

impl<C, R, O, E> After<C, R, O, E> for NoAfter