Skip to main content

RpcNodeCoreExt

Trait RpcNodeCoreExt 

Source
pub trait RpcNodeCoreExt: RpcNodeCore
where Self::Provider: BlockReader,
{ // Required method fn cache(&self) -> &EthStateCache<Self::Primitives>; }
Available on crate feature rpc only.
Expand description

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

Required Methods§

Source

fn cache(&self) -> &EthStateCache<Self::Primitives>

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".

Implementors§

Source§

impl<N, Rpc> RpcNodeCoreExt for EthApi<N, Rpc>
where N: RpcNodeCore, Rpc: RpcConvert,