Type Alias revm::handler::post_execution::EndHandle

source ·
pub type EndHandle<'a, EXT, DB> = Arc<dyn Fn(&mut Context<EXT, DB>, Result<ResultAndState, EVMError<<DB as Database>::Error>>) -> Result<ResultAndState, EVMError<<DB as Database>::Error>> + 'a>;
Expand description

End handle, takes result and state and returns final result. This will be called after all the other handlers.

It is useful for catching errors and returning them in a different way.

Aliased Type§

struct EndHandle<'a, EXT, DB> { /* private fields */ }