pub struct Config {
pub max_concurrent_requests: usize,
pub max_concurrent_requests_per_node: usize,
pub max_open_connections: usize,
pub max_concurrent_dials_per_hash: usize,
pub max_retries_per_node: u32,
pub initial_retry_delay: Duration,
}Expand description
Configuration parameters for the blobs service.
Fields§
§max_concurrent_requests: usizeMaximum number of requests the service performs concurrently.
max_concurrent_requests_per_node: usizeMaximum number of requests performed by a single node concurrently.
max_open_connections: usizeMaximum number of open connections the service maintains.
max_concurrent_dials_per_hash: usizeMaximum number of nodes to dial concurrently for a single request.
max_retries_per_node: u32Maximum number of retry attempts for a node that failed to dial or failed with IO errors.
initial_retry_delay: DurationThe initial delay to wait before retrying a node. On subsequent failures, the retry delay will be multiplied with the number of failed retries.
Trait Implementations§
Source§impl From<Config> for ConcurrencyLimits
impl From<Config> for ConcurrencyLimits
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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