rama::tcp::client

Function default_tcp_connect

pub async fn default_tcp_connect<State>(
    ctx: &Context<State>,
    authority: Authority,
) -> Result<(TcpStream, SocketAddr), OpaqueError>
where State: Clone + Send + Sync + 'static,
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.