Skip to main content

NetworkProtocols

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§