Trait ExecutorHooksTuple

Source
pub trait ExecutorHooksTuple<I, S> {
    // Required methods
    fn init_all(&mut self, state: &mut S);
    fn pre_exec_all(&mut self, state: &mut S, input: &I);
    fn post_exec_all(&mut self, state: &mut S, input: &I);
}
Expand description

The hook that runs before and after the executor runs the target

Required Methods§

Source

fn init_all(&mut self, state: &mut S)

Init these hooks

Source

fn pre_exec_all(&mut self, state: &mut S, input: &I)

The hooks that runs before runs the target

Source

fn post_exec_all(&mut self, state: &mut S, input: &I)

The hooks that runs after runs the target

Implementations on Foreign Types§

Source§

impl<Head, Tail, I, S> ExecutorHooksTuple<I, S> for (Head, Tail)
where Head: ExecutorHook<I, S>, Tail: ExecutorHooksTuple<I, S>,

Source§

fn init_all(&mut self, state: &mut S)

Source§

fn pre_exec_all(&mut self, state: &mut S, input: &I)

Source§

fn post_exec_all(&mut self, state: &mut S, input: &I)

Source§

impl<I, S> ExecutorHooksTuple<I, S> for ()

Source§

fn init_all(&mut self, _state: &mut S)

Source§

fn pre_exec_all(&mut self, _state: &mut S, _input: &I)

Source§

fn post_exec_all(&mut self, _state: &mut S, _input: &I)

Implementors§