pub trait EthRlpxHandshake:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn handshake<'a>(
&'a self,
unauth: &'a mut dyn UnauthEth,
status: UnifiedStatus,
fork_filter: ForkFilter,
timeout_limit: Duration,
) -> Pin<Box<dyn Future<Output = Result<UnifiedStatus, EthStreamError>> + Send + 'a>>;
}
Expand description
A trait that knows how to perform the P2P handshake.
Required Methods§
Sourcefn handshake<'a>(
&'a self,
unauth: &'a mut dyn UnauthEth,
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, 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.