Struct secret_handshake::OwningServerHandshaker [] [src]

pub struct OwningServerHandshaker<S>(_);

Performs the server side of a handshake. This copies the keys so that it isn't constrainted by their lifetime.

Methods

impl<S: AsyncRead + AsyncWrite> OwningServerHandshaker<S>
[src]

[src]

Creates a new ServerHandshakerWithFilter to accept a connection from a client which knows the server's public key and uses the right app key over the given stream.

Trait Implementations

impl<S: AsyncRead + AsyncWrite> Future for OwningServerHandshaker<S>
[src]

Future implementation to asynchronously drive a handshake.

A successful value

An error

[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

impl<S> !Send for OwningServerHandshaker<S>

impl<S> !Sync for OwningServerHandshaker<S>