Trait libafl::state::IfInteresting [−][src]
pub trait IfInteresting<I>: Sized where
I: Input, { fn is_interesting<OT>(
&mut self,
input: &I,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error>
where
OT: ObserversTuple; fn add_if_interesting<CS>(
&mut self,
input: &I,
is_interesting: bool,
scheduler: &CS
) -> Result<Option<usize>, Error>
where
CS: CorpusScheduler<I, Self>,
Self: Sized; }
Add to the state if interesting
Required methods
fn is_interesting<OT>(
&mut self,
input: &I,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error> where
OT: ObserversTuple,
[src]
&mut self,
input: &I,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error> where
OT: ObserversTuple,
Evaluate if a set of observation channels has an interesting state
fn add_if_interesting<CS>(
&mut self,
input: &I,
is_interesting: bool,
scheduler: &CS
) -> Result<Option<usize>, Error> where
CS: CorpusScheduler<I, Self>,
Self: Sized,
[src]
&mut self,
input: &I,
is_interesting: bool,
scheduler: &CS
) -> Result<Option<usize>, Error> where
CS: CorpusScheduler<I, Self>,
Self: Sized,
Adds this input to the corpus, if it’s intersting, and return the index
Implementors
impl<C, F, I, OF, R, SC> IfInteresting<I> for State<C, F, I, OF, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
F: Feedback<I>,
SC: Corpus<I>,
OF: Feedback<I>,
[src]
impl<C, F, I, OF, R, SC> IfInteresting<I> for State<C, F, I, OF, R, SC> where
C: Corpus<I>,
I: Input,
R: Rand,
F: Feedback<I>,
SC: Corpus<I>,
OF: Feedback<I>,
[src]fn is_interesting<OT>(
&mut self,
input: &I,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error> where
OT: ObserversTuple,
[src]
fn is_interesting<OT>(
&mut self,
input: &I,
observers: &OT,
exit_kind: &ExitKind
) -> Result<bool, Error> where
OT: ObserversTuple,
[src]Evaluate if a set of observation channels has an interesting state
fn add_if_interesting<CS>(
&mut self,
input: &I,
is_interesting: bool,
scheduler: &CS
) -> Result<Option<usize>, Error> where
CS: CorpusScheduler<I, Self>,
[src]
fn add_if_interesting<CS>(
&mut self,
input: &I,
is_interesting: bool,
scheduler: &CS
) -> Result<Option<usize>, Error> where
CS: CorpusScheduler<I, Self>,
[src]Adds this input to the corpus, if it’s intersting, and return the index