Trait RethNetworkConfig
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§
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.
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.