Skip to main content

pair_accept

Function pair_accept 

Source
pub async fn pair_accept<S>(
    stream: S,
    identity: &Identity,
    store: &TrustStore,
    desk: &PairingDesk,
    config: &PairConfig,
) -> Result<Paired, PeerError>
where S: AsyncRead + AsyncWrite + Unpin + PeerAddr,
Expand description

crate::pair_accept over an async stream; it waits for the operator without blocking the runtime, and sweeps desk every second meanwhile so expiry is seen.

ยงErrors

As crate::pair_accept.