Trait libafl::executors::hooks::ExecutorHooksTuple

source ·
pub trait ExecutorHooksTuple<S>
where S: UsesInput,
{ // Required methods fn init_all<E: HasObservers>(&mut self, state: &mut S); fn pre_exec_all(&mut self, state: &mut S, input: &S::Input); fn post_exec_all(&mut self, state: &mut S, input: &S::Input); }
Expand description

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

Required Methods§

source

fn init_all<E: HasObservers>(&mut self, state: &mut S)

Init these hooks

source

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

The hooks that runs before runs the target

source

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

The hooks that runs after runs the target

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

fn init_all<E: HasObservers>(&mut self, state: &mut S)

source§

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

source§

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

source§

impl<S> ExecutorHooksTuple<S> for ()
where S: UsesInput,

source§

fn init_all<E: HasObservers>(&mut self, _state: &mut S)

source§

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

source§

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

Implementors§