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