pub struct DownloaderConfig {
pub max_concurrent: usize,
pub backpressure_threshold: usize,
}Expand description
Configuration for the downloader.
This struct holds settings specific to the HTTP download subsystem.
Fields§
§max_concurrent: usizeThe maximum number of concurrent downloads.
backpressure_threshold: usizeThe backpressure threshold for response channel occupancy.
Implementations§
Source§impl DownloaderConfig
impl DownloaderConfig
Sourcepub fn with_max_concurrent(self, limit: usize) -> Self
pub fn with_max_concurrent(self, limit: usize) -> Self
Sets the maximum number of concurrent downloads.
Sourcepub fn with_backpressure_threshold(self, threshold: usize) -> Self
pub fn with_backpressure_threshold(self, threshold: usize) -> Self
Sets the backpressure threshold.
Trait Implementations§
Source§impl Clone for DownloaderConfig
impl Clone for DownloaderConfig
Source§fn clone(&self) -> DownloaderConfig
fn clone(&self) -> DownloaderConfig
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 moreSource§impl Debug for DownloaderConfig
impl Debug for DownloaderConfig
Auto Trait Implementations§
impl Freeze for DownloaderConfig
impl RefUnwindSafe for DownloaderConfig
impl Send for DownloaderConfig
impl Sync for DownloaderConfig
impl Unpin for DownloaderConfig
impl UnsafeUnpin for DownloaderConfig
impl UnwindSafe for DownloaderConfig
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