reth::rpc::api::servers::eth::node

Trait RpcNodeCoreExt

Source
pub trait RpcNodeCoreExt: RpcNodeCore
where Self::Provider: BlockReader,
{ // Required method fn cache( &self, ) -> &EthStateCache<<Self::Provider as BlockReader>::Block, <Self::Provider as ReceiptProvider>::Receipt>; }
Expand description

Additional components, asides the core node components, needed to run eth_ namespace API server.

Required Methods§

Source

fn cache( &self, ) -> &EthStateCache<<Self::Provider as BlockReader>::Block, <Self::Provider as ReceiptProvider>::Receipt>

Returns handle to RPC cache service.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Provider, Pool, Network, EvmConfig> RpcNodeCoreExt for EthApi<Provider, Pool, Network, EvmConfig>
where Provider: BlockReader + Clone + Unpin, Pool: Send + Sync + Clone + Unpin, Network: Send + Sync + Clone, EvmConfig: Send + Sync + Clone + Unpin,