pub struct DownloaderConfig {
pub max_concurrent_downloads: usize,
pub max_retries: u32,
pub initial_delay_ms: u64,
}Expand description
Configuration pour le téléchargement de fichiers
Fields§
§max_concurrent_downloads: usizeNombre maximum de téléchargements concurrents (défaut: 50)
max_retries: u32Nombre maximum de tentatives en cas d’échec (défaut: 3)
initial_delay_ms: u64Délai initial en millisecondes avant retry (défaut: 20ms, augmente exponentiellement)
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§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
Source§impl Default for DownloaderConfig
impl Default for DownloaderConfig
impl Copy 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 UnwindSafe for DownloaderConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)