Trait libafl::events::hooks::EventManagerHooksTuple

source ·
pub trait EventManagerHooksTuple<S>
where S: State,
{ // Required methods fn pre_exec_all( &mut self, state: &mut S, client_id: ClientId, event: &Event<S::Input> ) -> Result<bool, Error>; fn post_exec_all( &mut self, state: &mut S, client_id: ClientId ) -> Result<bool, Error>; }
Expand description

The tuples contains hooks to be executed for handle_in_client

Required Methods§

source

fn pre_exec_all( &mut self, state: &mut S, client_id: ClientId, event: &Event<S::Input> ) -> Result<bool, Error>

The hook that runs before handle_in_client

source

fn post_exec_all( &mut self, state: &mut S, client_id: ClientId ) -> Result<bool, Error>

The hook that runs after handle_in_client

Implementations on Foreign Types§

source§

impl<Head, Tail, S> EventManagerHooksTuple<S> for (Head, Tail)
where Head: EventManagerHook<S>, Tail: EventManagerHooksTuple<S>, S: State,

source§

fn pre_exec_all( &mut self, state: &mut S, client_id: ClientId, event: &Event<S::Input> ) -> Result<bool, Error>

The hook that runs before handle_in_client

source§

fn post_exec_all( &mut self, state: &mut S, client_id: ClientId ) -> Result<bool, Error>

The hook that runs after handle_in_client

source§

impl<S> EventManagerHooksTuple<S> for ()
where S: State,

source§

fn pre_exec_all( &mut self, _state: &mut S, _client_id: ClientId, _event: &Event<S::Input> ) -> Result<bool, Error>

The hook that runs before handle_in_client

source§

fn post_exec_all( &mut self, _state: &mut S, _client_id: ClientId ) -> Result<bool, Error>

The hook that runs after handle_in_client

Implementors§