reth::builder::rpc

Trait OnRpcStarted

source
pub trait OnRpcStarted<Node, EthApi>: Send
where Node: FullNodeComponents, EthApi: EthApiTypes,
{ // Required method fn on_rpc_started( self: Box<Self>, ctx: RpcContext<'_, Node, EthApi>, handles: RethRpcServerHandles, ) -> Result<(), Report>; }
Expand description

Event hook that is called once the rpc server is started.

Required Methods§

source

fn on_rpc_started( self: Box<Self>, ctx: RpcContext<'_, Node, EthApi>, handles: RethRpcServerHandles, ) -> Result<(), Report>

The hook that is called once the rpc server is started.

Implementations on Foreign Types§

source§

impl<Node, EthApi> OnRpcStarted<Node, EthApi> for ()
where Node: FullNodeComponents, EthApi: EthApiTypes,

source§

fn on_rpc_started( self: Box<()>, _: RpcContext<'_, Node, EthApi>, _: RethRpcServerHandles, ) -> Result<(), Report>

Implementors§

source§

impl<Node, EthApi, F> OnRpcStarted<Node, EthApi> for F
where F: FnOnce(RpcContext<'_, Node, EthApi>, RethRpcServerHandles) -> Result<(), Report> + Send, Node: FullNodeComponents, EthApi: EthApiTypes,