Function default_tcp_connect

pub async fn default_tcp_connect(
    ctx: &Context,
    authority: Authority,
) -> Result<(TcpStream, SocketAddr), OpaqueError>
Expand description

Establish a TcpStream connection for the given Authority, using the default settings and no custom state.

Use tcp_connect in case you want to customise any of these settings, or use a rama_net::client::ConnectorService for even more advanced possibilities.