pub struct ProviderConfig {Show 15 fields
pub kind: ProviderKind,
pub url: Option<String>,
pub bearer_token: Option<String>,
pub max_num_retries: Option<usize>,
pub retry_backoff_ms: Option<u64>,
pub retry_base_ms: Option<u64>,
pub retry_ceiling_ms: Option<u64>,
pub req_timeout_millis: Option<u64>,
pub stop_on_head: bool,
pub head_poll_interval_millis: Option<u64>,
pub buffer_size: Option<usize>,
pub compute_units_per_second: Option<u64>,
pub batch_size: Option<usize>,
pub reorg_safe_distance: Option<u64>,
pub trace_method: Option<RpcTraceMethod>,
}Expand description
Configuration for a data provider, including connection details and retry settings.
Fields§
§kind: ProviderKind§url: Option<String>§bearer_token: Option<String>§max_num_retries: Option<usize>§retry_backoff_ms: Option<u64>§retry_base_ms: Option<u64>§retry_ceiling_ms: Option<u64>§req_timeout_millis: Option<u64>§stop_on_head: bool§head_poll_interval_millis: Option<u64>§buffer_size: Option<usize>§compute_units_per_second: Option<u64>§batch_size: Option<usize>§reorg_safe_distance: Option<u64>§trace_method: Option<RpcTraceMethod>Implementations§
Source§impl ProviderConfig
impl ProviderConfig
pub fn new(kind: ProviderKind) -> Self
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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