pub struct DownloadConfiguration {Show 13 fields
pub url: Option<String>,
pub temp_path: Option<String>,
pub path: Option<String>,
pub chunk_size: u64,
pub total_length: u64,
pub remote_version: i64,
pub retry_times_on_failure: u8,
pub receive_bytes_per_second: u64,
pub timeout: u64,
pub range_download: bool,
pub chunk_download: bool,
pub download_in_memory: bool,
pub file_verify: FileVerify,
}
Fields§
§url: Option<String>
§temp_path: Option<String>
§path: Option<String>
§chunk_size: u64
§total_length: u64
§remote_version: i64
§retry_times_on_failure: u8
§receive_bytes_per_second: u64
§timeout: u64
§range_download: bool
§chunk_download: bool
§download_in_memory: bool
§file_verify: FileVerify
Implementations§
Source§impl DownloadConfiguration
impl DownloadConfiguration
pub fn new() -> DownloadConfigurationBuilder
pub fn get_file_path(&self) -> &str
pub fn get_file_temp_path(&self) -> &str
pub fn url(&self) -> &str
Auto Trait Implementations§
impl Freeze for DownloadConfiguration
impl RefUnwindSafe for DownloadConfiguration
impl Send for DownloadConfiguration
impl Sync for DownloadConfiguration
impl Unpin for DownloadConfiguration
impl UnwindSafe for DownloadConfiguration
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