pub struct ClientConfig {
pub url: String,
pub bearer_token: Option<String>,
pub http_req_timeout: Duration,
pub max_num_retries: u32,
pub retry_base_ms: u64,
pub retry_ceiling_ms: u64,
pub proactive_rate_limit_sleep: bool,
}Expand description
Configuration for the Solana HyperSync client.
Fields§
§url: StringBase URL of the HyperSync server (e.g. “https://solana.hypersync.xyz”).
bearer_token: Option<String>Bearer token for authenticated requests.
http_req_timeout: DurationTimeout for individual HTTP requests.
max_num_retries: u32Maximum number of retries per request.
retry_base_ms: u64Base delay for exponential backoff retries.
retry_ceiling_ms: u64Maximum delay for exponential backoff retries.
proactive_rate_limit_sleep: boolWhether to proactively sleep when the rate limit is exhausted instead of sending requests that will be rejected with 429.
Enabled by default. Set to false to opt out and handle rate limits yourself.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more