Struct secret_handshake::ClientHandshaker
[−]
[src]
pub struct ClientHandshaker<'a, S>(_, _);
Performs the client side of a handshake.
Methods
impl<'a, S: AsyncRead + AsyncWrite> ClientHandshaker<'a, S>
[src]
pub fn new(
stream: S,
network_identifier: &'a [u8; 32],
client_longterm_pk: &'a PublicKey,
client_longterm_sk: &'a SecretKey,
client_ephemeral_pk: &'a PublicKey,
client_ephemeral_sk: &'a SecretKey,
server_longterm_pk: &'a PublicKey
) -> ClientHandshaker<'a, S>
[src]
stream: S,
network_identifier: &'a [u8; 32],
client_longterm_pk: &'a PublicKey,
client_longterm_sk: &'a SecretKey,
client_ephemeral_pk: &'a PublicKey,
client_ephemeral_sk: &'a SecretKey,
server_longterm_pk: &'a PublicKey
) -> ClientHandshaker<'a, S>
Creates a new ClientHandshaker to connect to a server with known public key
and app key over the given stream
.
Trait Implementations
impl<'a, S: AsyncRead + AsyncWrite> Future for ClientHandshaker<'a, S>
[src]
Future implementation to asynchronously drive a handshake.