Trait RemovableScheduler

Source
pub trait RemovableScheduler<I, S> {
    // Provided methods
    fn on_remove(
        &mut self,
        _state: &mut S,
        _id: CorpusId,
        _testcase: &Option<Testcase<I>>,
    ) -> Result<(), Error> { ... }
    fn on_replace(
        &mut self,
        _state: &mut S,
        _id: CorpusId,
        _prev: &Testcase<I>,
    ) -> 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 S, _id: CorpusId, _testcase: &Option<Testcase<I>>, ) -> Result<(), Error>

Removed the given entry from the corpus at the given index When you remove testcases, make sure that that testcase is not currently fuzzed one!

Source

fn on_replace( &mut self, _state: &mut S, _id: CorpusId, _prev: &Testcase<I>, ) -> Result<(), Error>

Replaced the given testcase at the given idx

Implementors§

Source§

impl<C, F, I, O, S> RemovableScheduler<I, S> for WeightedScheduler<C, F, O>

Source§

impl<C, I, O, S> RemovableScheduler<I, S> for PowerQueueScheduler<C, O>

Source§

impl<CS, F, M, I, O, S> RemovableScheduler<I, S> for MinimizerScheduler<CS, F, I, M, O>
where CS: RemovableScheduler<I, S> + Scheduler<I, S>, F: TestcaseScore<I, S>, M: for<'a> AsIter<'a, Item = usize> + SerdeAny + HasRefCnt, S: HasCorpus<I> + HasMetadata + HasRand,

Source§

impl<F, I, S> RemovableScheduler<I, S> for ProbabilitySamplingScheduler<F>
where F: TestcaseScore<I, S>, S: HasCorpus<I> + HasMetadata + HasRand,

Source§

impl<I, S> RemovableScheduler<I, S> for QueueScheduler

Source§

impl<I, S> RemovableScheduler<I, S> for TuneableScheduler