pub trait RpcNodeCoreExt: RpcNodeCore<Provider: BlockReader> {
// Required method
fn cache(
&self,
) -> &EthStateCache<ProviderBlock<Self::Provider>, ProviderReceipt<Self::Provider>>;
}
Expand description
Additional components, asides the core node components, needed to run eth_
namespace API
server.
Required Methods§
Sourcefn cache(
&self,
) -> &EthStateCache<ProviderBlock<Self::Provider>, ProviderReceipt<Self::Provider>>
fn cache( &self, ) -> &EthStateCache<ProviderBlock<Self::Provider>, ProviderReceipt<Self::Provider>>
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.