Function netcore::transport::tcp::resolve_and_connect
source · pub async fn resolve_and_connect(addr: NetworkAddress) -> Result<TcpStream>Expand description
Note: we need to take ownership of this NetworkAddress (instead of just
borrowing the &[Protocol] slice) so this future can be Send + 'static.