EthConfigApiServer

Trait EthConfigApiServer 

Source
pub trait EthConfigApiServer:
    Sized
    + Send
    + Sync
    + 'static {
    // Required method
    fn config(&self) -> RpcResult<EthConfig>;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description

Server trait implementation for the EthConfigApi RPC API.

Required Methods§

Source

fn config(&self) -> RpcResult<EthConfig>

Returns an object with data about recent and upcoming fork configurations.

Provided Methods§

Source

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

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, Evm> EthConfigApiServer for EthConfigHandler<Provider, Evm>
where Provider: ChainSpecProvider<ChainSpec: Hardforks + EthereumHardforks> + BlockReaderIdExt<Header = Header> + 'static, Evm: ConfigureEvm<Primitives: NodePrimitives<BlockHeader = Header>> + 'static,