pub async fn outgoing<SK: SecretKey, D: Data, A: Data + Debug, ND: Dialer<A>>(
    secret_key: SK,
    public_key: SK::PublicKey,
    dialer: ND,
    address: A,
    result_for_parent: UnboundedSender<(SK::PublicKey, Option<UnboundedSender<D>>)>,
    data_for_user: UnboundedSender<D>,
    metrics: Metrics
)
Expand description

Establish an outgoing connection to the provided peer using the dialer and then manage it. While this works it will send any data from the user to the peer. Any failures will be reported to the parent, so that connections can be reestablished if necessary.