Trait libafl::observers::ObserversTuple
source · [−]pub trait ObserversTuple<I, S>: MatchName + Debug {
fn pre_exec_all(&mut self, state: &mut S, input: &I) -> Result<(), Error>;
fn post_exec_all(
&mut self,
state: &mut S,
input: &I,
exit_kind: &ExitKind
) -> Result<(), Error>;
fn pre_exec_child_all(
&mut self,
state: &mut S,
input: &I
) -> Result<(), Error>;
fn post_exec_child_all(
&mut self,
state: &mut S,
input: &I,
exit_kind: &ExitKind
) -> Result<(), Error>;
}
Expand description
A haskell-style tuple of observers
Required Methods
sourcefn pre_exec_all(&mut self, state: &mut S, input: &I) -> Result<(), Error>
fn pre_exec_all(&mut self, state: &mut S, input: &I) -> Result<(), Error>
This is called right before the next execution.
sourcefn post_exec_all(
&mut self,
state: &mut S,
input: &I,
exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec_all(
&mut self,
state: &mut S,
input: &I,
exit_kind: &ExitKind
) -> Result<(), Error>
This is called right after the last execution