reth::builder::rpc

Trait RethRpcAddOns

Source
pub trait RethRpcAddOns<N>: NodeAddOns<N, Handle = RpcHandle<N, Self::EthApi>>{
    type EthApi: EthApiTypes;

    // Required method
    fn hooks_mut(&mut self) -> &mut RpcHooks<N, Self::EthApi>;
}
Expand description

Helper trait implemented for add-ons producing RpcHandle. Used by common node launcher implementations.

Required Associated Types§

Source

type EthApi: EthApiTypes

eth API implementation.

Required Methods§

Source

fn hooks_mut(&mut self) -> &mut RpcHooks<N, Self::EthApi>

Returns a mutable reference to RPC hooks.

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<N, EthApi, EV> RethRpcAddOns<N> for RpcAddOns<N, EthApi, EV>
where N: FullNodeComponents, EthApi: EthApiTypes, RpcAddOns<N, EthApi, EV>: NodeAddOns<N, Handle = RpcHandle<N, EthApi>>,

Source§

type EthApi = EthApi