pub struct ConcurrencyLimits {
pub max_concurrent_requests: usize,
pub max_concurrent_requests_per_node: usize,
pub max_open_connections: usize,
pub max_concurrent_dials_per_hash: usize,
}
Available on crate feature
downloader
only.Expand description
Concurrency limits for the Downloader
.
Fields§
§max_concurrent_requests: usize
Maximum number of requests the service performs concurrently.
max_concurrent_requests_per_node: usize
Maximum number of requests performed by a single node concurrently.
max_open_connections: usize
Maximum number of open connections the service maintains.
max_concurrent_dials_per_hash: usize
Maximum number of nodes to dial concurrently for a single request.
Trait Implementations§
Source§impl Clone for ConcurrencyLimits
impl Clone for ConcurrencyLimits
Source§fn clone(&self) -> ConcurrencyLimits
fn clone(&self) -> ConcurrencyLimits
Returns a copy 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 moreSource§impl Debug for ConcurrencyLimits
impl Debug for ConcurrencyLimits
Source§impl Default for ConcurrencyLimits
impl Default for ConcurrencyLimits
Source§impl PartialEq for ConcurrencyLimits
impl PartialEq for ConcurrencyLimits
impl Copy for ConcurrencyLimits
impl Eq for ConcurrencyLimits
impl StructuralPartialEq for ConcurrencyLimits
Auto Trait Implementations§
impl Freeze for ConcurrencyLimits
impl RefUnwindSafe for ConcurrencyLimits
impl Send for ConcurrencyLimits
impl Sync for ConcurrencyLimits
impl Unpin for ConcurrencyLimits
impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more