Struct iroh_blobs::downloader::ConcurrencyLimits
source · 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 Debug for ConcurrencyLimits
impl Debug 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