Trait EthRlpxHandshake
pub trait EthRlpxHandshake:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn handshake<'a>(
&'a self,
unauth: &'a mut dyn UnauthEth<Item = Result<BytesMut, P2PStreamError>, Error = P2PStreamError>,
status: UnifiedStatus,
fork_filter: ForkFilter,
timeout_limit: Duration,
) -> Pin<Box<dyn Future<Output = Result<UnifiedStatus, EthStreamError>> + Send + 'a>>;
}
Available on crate feature
network
only.Expand description
A trait that knows how to perform the P2P handshake.
Required Methods§
fn handshake<'a>(
&'a self,
unauth: &'a mut dyn UnauthEth<Item = Result<BytesMut, P2PStreamError>, Error = P2PStreamError>,
status: UnifiedStatus,
fork_filter: ForkFilter,
timeout_limit: Duration,
) -> Pin<Box<dyn Future<Output = Result<UnifiedStatus, EthStreamError>> + Send + 'a>>
fn handshake<'a>( &'a self, unauth: &'a mut dyn UnauthEth<Item = Result<BytesMut, P2PStreamError>, Error = P2PStreamError>, status: UnifiedStatus, fork_filter: ForkFilter, timeout_limit: Duration, ) -> Pin<Box<dyn Future<Output = Result<UnifiedStatus, EthStreamError>> + Send + 'a>>
Perform the P2P handshake for the eth
protocol.