pub trait Executor<EM, Z>: UsesState + Debugwhere
EM: UsesState<State = Self::State>,
Z: UsesState<State = Self::State>,{
fn run_target(
&mut self,
fuzzer: &mut Z,
state: &mut Self::State,
mgr: &mut EM,
input: &Self::Input
) -> Result<ExitKind, Error>;
fn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT>
where
Self: Sized,
OT: ObserversTuple<Self::State>,
{ ... }
fn post_run_reset(&mut self) { ... }
}
Expand description
An executor takes the given inputs, and runs the harness/target.
Required Methods§
Provided Methods§
sourcefn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT>where
Self: Sized,
OT: ObserversTuple<Self::State>,
fn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT>where
Self: Sized,
OT: ObserversTuple<Self::State>,
Wraps this Executor with the given ObserversTuple
to implement HasObservers
.
If the executor already implements HasObservers
, then the original implementation will be overshadowed by
the implementation of this wrapper.
sourcefn post_run_reset(&mut self)
fn post_run_reset(&mut self)
Custom Reset Handler, e.g., to reset timers