Trait libafl::fuzzer::HasObjective

source ·
pub trait HasObjective: UsesState {
    type Objective: Feedback<Self::State>;

    // Required methods
    fn objective(&self) -> &Self::Objective;
    fn objective_mut(&mut self) -> &mut Self::Objective;
}
Expand description

Holds an objective feedback

Required Associated Types§

source

type Objective: Feedback<Self::State>

The type of the Feedback used to find objectives for this fuzzer

Required Methods§

source

fn objective(&self) -> &Self::Objective

The objective feedback

source

fn objective_mut(&mut self) -> &mut Self::Objective

The objective feedback (mutable)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<CS, F, OF, OT> HasObjective for StdFuzzer<CS, F, OF, OT>
where CS: Scheduler, F: Feedback<CS::State>, OF: Feedback<CS::State>, CS::State: HasCorpus,

§

type Objective = OF