pub struct DownloadConfig {
pub url: String,
pub target_path: PathBuf,
pub chunk_size: u64,
pub parallelism: usize,
pub max_parallel_chunks: usize,
pub retry: RetryConfig,
pub timeout: TimeoutConfig,
pub bytes_per_second_limit: u64,
pub hash: HashConfig,
}Fields§
§url: String§target_path: PathBuf§chunk_size: u64§parallelism: usize§max_parallel_chunks: usize§retry: RetryConfig§timeout: TimeoutConfig§bytes_per_second_limit: u64§hash: HashConfigImplementations§
Source§impl DownloadConfig
impl DownloadConfig
pub fn normalized(self) -> Self
Trait Implementations§
Source§impl Clone for DownloadConfig
impl Clone for DownloadConfig
Source§fn clone(&self) -> DownloadConfig
fn clone(&self) -> DownloadConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DownloadConfig
impl RefUnwindSafe for DownloadConfig
impl Send for DownloadConfig
impl Sync for DownloadConfig
impl Unpin for DownloadConfig
impl UnsafeUnpin for DownloadConfig
impl UnwindSafe for DownloadConfig
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