pub trait Scheduler<I, S> {
// Required methods
fn on_add(&mut self, _state: &mut S, _id: CorpusId) -> Result<(), Error>;
fn next(&mut self, state: &mut S) -> Result<CorpusId, Error>;
fn set_current_scheduled(
&mut self,
state: &mut S,
next_id: Option<CorpusId>,
) -> Result<(), Error>;
// Provided method
fn on_evaluation<OT>(
&mut self,
_state: &mut S,
_input: &I,
_observers: &OT,
) -> Result<(), Error>
where OT: MatchName { ... }
}
Expand description
The scheduler define how the fuzzer requests a testcase from the corpus. It has hooks to corpus add/replace/remove to allow complex scheduling algorithms to collect data.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.