Trait libafl::events::EventRestarter
source · pub trait EventRestarter: UsesState {
fn on_restart(&mut self, _state: &mut Self::State) -> Result<(), Error> { ... }
fn await_restart_safe(&mut self) { ... }
}
Expand description
Restartable trait
Provided Methods§
sourcefn on_restart(&mut self, _state: &mut Self::State) -> Result<(), Error>
fn on_restart(&mut self, _state: &mut Self::State) -> Result<(), Error>
For restarting event managers, implement a way to forward state to their next peers.
sourcefn await_restart_safe(&mut self)
fn await_restart_safe(&mut self)
Block until we are safe to exit.