Trait fuzzcheck::CompatibleWithSensor[][src]

pub trait CompatibleWithSensor<S: Sensor>: Pool {
    fn process(
        &mut self,
        input_id: PoolStorageIndex,
        sensor: &mut S,
        complexity: f64
    ) -> Vec<CorpusDelta>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
; }
Expand description

A subtrait of Pool describing how the pool handles observations made by a sensor.

This trait is separate from Pool because a single pool type may handle multiple different kinds of sensors.

It is responsible for judging whether the observations are interesting, and then adding the test case to the pool if they are. It communicates to the rest of the fuzzer what test cases were added or removed from the pool via the CorpusDelta type. This ensures that the right message can be printed to the terminal and that the corpus on the file system, which reflects the content of the pool, can be properly updated.

Required methods

Implementors