pub struct RpcConfig {
pub endpoints: Vec<EndpointConfig>,
pub add_endpoints: Vec<String>,
pub exclude_endpoints: Vec<String>,
pub min_priority: u8,
pub timeout_secs: u64,
pub max_retries: u32,
pub concurrency: usize,
pub proxy: Option<ProxyConfig>,
pub chunk_size: Option<u64>,
}Expand description
RPC configuration
Fields§
§endpoints: Vec<EndpointConfig>Custom RPC endpoints (if empty, use defaults)
add_endpoints: Vec<String>Additional endpoints to add to defaults
exclude_endpoints: Vec<String>Endpoints to exclude from pool
min_priority: u8Minimum priority for endpoints
timeout_secs: u64Request timeout in seconds
max_retries: u32Max retries per request
concurrency: usizeNumber of parallel requests
proxy: Option<ProxyConfig>Proxy configuration
chunk_size: Option<u64>Override chunk size (max block range per request)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcConfig
impl RefUnwindSafe for RpcConfig
impl Send for RpcConfig
impl Sync for RpcConfig
impl Unpin for RpcConfig
impl UnwindSafe for RpcConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more