pub trait RethNetworkConfig {
// Required methods
fn add_rlpx_sub_protocol(&mut self, protocol: impl IntoRlpxSubProtocol);
fn secret_key(&self) -> SecretKey;
}
Expand description
Re-export the core configuration traits. A trait that represents the configured network and can be used to apply additional configuration to the network.
Required Methods§
fn add_rlpx_sub_protocol(&mut self, protocol: impl IntoRlpxSubProtocol)
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
fn secret_key(&self) -> SecretKey
fn secret_key(&self) -> SecretKey
Returns the secret key used for authenticating sessions.
Object Safety§
This trait is not object safe.