Trait libafl::schedulers::RemovableScheduler

source ·
pub trait RemovableScheduler: Scheduler
where Self::State: HasCorpus,
{ // Provided methods fn on_remove( &mut self, _state: &mut Self::State, _idx: CorpusId, _testcase: &Option<Testcase<<Self::State as UsesInput>::Input>> ) -> Result<(), Error> { ... } fn on_replace( &mut self, _state: &mut Self::State, _idx: CorpusId, _prev: &Testcase<<Self::State as UsesInput>::Input> ) -> Result<(), Error> { ... } }
Expand description

The scheduler also implements on_remove and on_replace if it implements this stage.

Provided Methods§

source

fn on_remove( &mut self, _state: &mut Self::State, _idx: CorpusId, _testcase: &Option<Testcase<<Self::State as UsesInput>::Input>> ) -> Result<(), Error>

Removed the given entry from the corpus at the given index

source

fn on_replace( &mut self, _state: &mut Self::State, _idx: CorpusId, _prev: &Testcase<<Self::State as UsesInput>::Input> ) -> Result<(), Error>

Replaced the given testcase at the given idx

Object Safety§

This trait is not object safe.

Implementors§