Trait libafl::executors::HasExecHooks[][src]

pub trait HasExecHooks<EM, I, S> {
    fn pre_exec(
        &mut self,
        _state: &mut S,
        _mgr: &mut EM,
        _input: &I
    ) -> Result<(), Error> { ... }
fn post_exec(
        &mut self,
        _state: &mut S,
        _mgr: &mut EM,
        _input: &I
    ) -> Result<(), Error> { ... } }

Pre and post exec hooks

Provided methods

fn pre_exec(
    &mut self,
    _state: &mut S,
    _mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

Called right before exexution starts

fn post_exec(
    &mut self,
    _state: &mut S,
    _mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

Called right after execution finished.

Loading content...

Implementors

impl<'a, EM, H, I, OT, S> HasExecHooks<EM, I, S> for InProcessExecutor<'a, EM, H, I, OT, S> where
    H: FnMut(&[u8]) -> ExitKind,
    I: Input + HasTargetBytes,
    OT: ObserversTuple
[src]

fn pre_exec(
    &mut self,
    _state: &mut S,
    _event_mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

fn post_exec(
    &mut self,
    _state: &mut S,
    _event_mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

impl<'a, EM, I, S, T> HasExecHooks<EM, I, S> for StdMapObserver<'a, T> where
    T: Default + Copy + 'static + Serialize + DeserializeOwned,
    Self: MapObserver<T>, 
[src]

fn pre_exec(
    &mut self,
    _state: &mut S,
    _mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

impl<'a, EM, I, S, T> HasExecHooks<EM, I, S> for VariableMapObserver<'a, T> where
    T: Default + Copy + 'static + Serialize + DeserializeOwned
[src]

fn pre_exec(
    &mut self,
    _state: &mut S,
    _mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

impl<E, EM, I, S> HasExecHooks<EM, I, S> for TimeoutExecutor<E, I> where
    E: Executor<I> + HasExecHooks<EM, I, S>,
    I: Input
[src]

fn pre_exec(
    &mut self,
    state: &mut S,
    mgr: &mut EM,
    input: &I
) -> Result<(), Error>
[src]

fn post_exec(
    &mut self,
    state: &mut S,
    mgr: &mut EM,
    input: &I
) -> Result<(), Error>
[src]

impl<EM, I, S> HasExecHooks<EM, I, S> for TimeObserver[src]

fn pre_exec(
    &mut self,
    _state: &mut S,
    _mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

fn post_exec(
    &mut self,
    _state: &mut S,
    _mgr: &mut EM,
    _input: &I
) -> Result<(), Error>
[src]

impl<EM, I, S, M> HasExecHooks<EM, I, S> for HitcountsMapObserver<M> where
    M: MapObserver<u8> + HasExecHooks<EM, I, S>, 
[src]

fn pre_exec(
    &mut self,
    state: &mut S,
    mgr: &mut EM,
    input: &I
) -> Result<(), Error>
[src]

fn post_exec(
    &mut self,
    state: &mut S,
    mgr: &mut EM,
    input: &I
) -> Result<(), Error>
[src]

Loading content...