Function network_clique::protocols::handshake::v0_handshake_incoming
source · pub async fn v0_handshake_incoming<SK: SecretKey, S: Splittable>(
stream: S,
secret_key: SK
) -> Result<(S::Sender, S::Receiver, SK::PublicKey), HandshakeError<SK::PublicKey>>
Expand description
Wrapper that adds timeout to the function performing handshake.