Creates outbound connections with other peers. Generic over the
codec applied to the resulting framed stream so the same machinery
(TLS, retries, slots, monitor events) serves both the peer
data-plane (PeerNetMsgCodec) and the kademlia lookup-plane
(KadNetMsgCodec).
Internal dial result. Generic over the codec used to frame the
resulting connection. Carries the optional cert-derived PeerID so
the caller can stamp it on the QueuedConn for the application
handshake to enforce.