pub trait Executor<EM, Z>: UsesState{
// Required method
fn run_target(
&mut self,
fuzzer: &mut Z,
state: &mut Self::State,
mgr: &mut EM,
input: &Self::Input
) -> Result<ExitKind, Error>;
// Provided method
fn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT>
where Self: Sized,
OT: ObserversTuple<Self::State> { ... }
}
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>
fn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT>
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.