dial

Function dial 

Source
pub async fn dial<R: CryptoRngCore + Clock, S: Signer, I: Stream, O: Sink>(
    ctx: R,
    config: Config<S>,
    peer: S::PublicKey,
    stream: I,
    sink: O,
) -> Result<(Sender<O>, Receiver<I>), Error>
Expand description

Establishes an authenticated connection to a peer as the dialer. Returns sender and receiver for encrypted communication.