pub fn new_with_timeout_and_commitment(
        url: String,
        timeout: Duration,
        commitment_config: CommitmentConfig,
    ) -> Self {
        Self::new_sender(
            HttpSender::new_with_timeout(url, timeout),
            RpcClientConfig::with_commitment(commitment_config),
        )
    }
/// Create an HTTP `RpcClient` with specified timeout and commitment level.
///
/// The URL is an HTTP URL, usually for port 8899, as in
/// "http://localhost:8899".
///
/// # Examples
///
/// ```
/// # use std::time::Duration;
/// # use solana_client::rpc_client::RpcClient;
/// # use solana_sdk::commitment_config::CommitmentConfig;
/// let url = "http://localhost::8899".to_string();
/// let timeout = Duration::from_secs(1);
/// let commitment_config = CommitmentConfig::processed();
/// let client = RpcClient::new_with_timeout_and_commitment(
///     url,
///     timeout,
///     commitment_config,
/// );
/// ```
Create an HTTP `RpcClient` with specified timeout and commitment level.
Create an HTTP ` RpcClient ` with specified timeout and commitment level .
pub fn new_with_timeout_and_commitment(
        url: String,
        timeout: Duration,
        commitment_config: CommitmentConfig,
    ) -> Self {
        Self::new_sender(
            HttpSender::new_with_timeout(url, timeout),
            RpcClientConfig::with_commitment(commitment_config),
        )
    }
pub fn new_with_timeout_and_commitment ( url : String , timeout : Duration , commitment_config : CommitmentConfig , ) -> Self { Self :: new_sender ( HttpSender :: new_with_timeout ( url , timeout ) , RpcClientConfig :: with_commitment ( commitment_config ) , ) }
Create an HTTP `RpcClient` with specified timeout and commitment level.
Create an HTTP ` RpcClient ` with specified timeout and commitment level .
url
String
timeout
Duration
commitment_config
CommitmentConfig
url
String
timeout
Duration
commitment_config
CommitmentConfig
examples
None
use std::time::duration;
None
use solana_client::rpc_client::rpcclient;
None
use solana_sdk::commitment_config::commitmentconfig;
None