Trait EthRlpxHandshake

Source
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§

Source

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.

Implementors§