pub trait EthRlpxHandshake:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn handshake<'a>(
&'a self,
unauth: &'a mut dyn UnauthEth<Error = P2PStreamError, Item = Result<BytesMut, 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§
Sourcefn handshake<'a>(
&'a self,
unauth: &'a mut dyn UnauthEth<Error = P2PStreamError, Item = Result<BytesMut, 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<Error = P2PStreamError, Item = Result<BytesMut, 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.