revm/handler/handle_types/generic.rs
1use crate::{
2 primitives::{db::Database, EVMResultGeneric},
3 Context,
4};
5use std::sync::Arc;
6
7/// Generic Handle that takes a mutable reference to the context and returns a result.
8pub type GenericContextHandle<'a, EXT, DB> = GenericContextHandleRet<'a, EXT, DB, ()>;
9
10/// Generic handle that takes a mutable reference to the context and returns a result.
11pub type GenericContextHandleRet<'a, EXT, DB, ReturnT> =
12 Arc<dyn Fn(&mut Context<EXT, DB>) -> EVMResultGeneric<ReturnT, <DB as Database>::Error> + 'a>;