reth::core::cli::config

Trait RethNetworkConfig

Source
pub trait RethNetworkConfig {
    // Required methods
    fn add_rlpx_sub_protocol(&mut self, protocol: impl IntoRlpxSubProtocol);
    fn secret_key(&self) -> SecretKey;
}
Expand description

A trait that represents the configured network and can be used to apply additional configuration to the network.

Required Methods§

Source

fn add_rlpx_sub_protocol(&mut self, protocol: impl IntoRlpxSubProtocol)

Adds a new additional protocol to the RLPx sub-protocol list.

These additional protocols are negotiated during the RLPx handshake. If both peers share the same protocol, the corresponding handler will be included alongside the eth protocol.

See also ProtocolHandler

Source

fn secret_key(&self) -> SecretKey

Returns the secret key used for authenticating sessions.

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§