Skip to main content

pair_respond

Function pair_respond 

Source
pub async fn pair_respond<S>(
    tls: TlsStream<S>,
    source: Option<SocketAddr>,
    identity: &Identity,
    store: &TrustStore,
    desk: &PairingDesk,
    config: &PairConfig,
) -> Result<Paired, PeerError>
where S: AsyncRead + AsyncWrite + Unpin,
Expand description

Runs the responder’s side of pairing on a connection already accepted with pair_server_config (for example chosen by accept_with for a client that offered the pairing ALPN), as identity, for a client from source. The exchange waits at most PairConfig::timeout from this call.

§Errors

As crate::pair_accept.