reth_network

Trait NetworkProtocols

Source
pub trait NetworkProtocols: Send + Sync {
    // Required method
    fn add_rlpx_sub_protocol(&self, protocol: RlpxSubProtocol);
}
Expand description

Provides access to modify the network’s additional protocol handlers.

Required Methods§

Source

fn add_rlpx_sub_protocol(&self, protocol: RlpxSubProtocol)

Adds an additional protocol handler to the RLPx sub-protocol list.

Implementors§