pub struct DownloadConfigurationBuilder { /* private fields */ }
Implementations§
Source§impl DownloadConfigurationBuilder
impl DownloadConfigurationBuilder
pub fn set_url(self, url: &str) -> DownloadConfigurationBuilder
pub fn set_file_path(self, path: &str) -> DownloadConfigurationBuilder
pub fn set_remote_version(self, version: i64) -> DownloadConfigurationBuilder
pub fn set_range_download( self, range_download: bool, ) -> DownloadConfigurationBuilder
pub fn set_chunk_download( self, chunk_download: bool, ) -> DownloadConfigurationBuilder
pub fn set_chunk_size(self, chunk_size: u64) -> DownloadConfigurationBuilder
pub fn set_retry_times_on_failure( self, retry_times: u8, ) -> DownloadConfigurationBuilder
pub fn set_timeout(self, timeout: u64) -> DownloadConfigurationBuilder
pub fn set_download_speed_limit( self, receive_bytes_per_second: u64, ) -> DownloadConfigurationBuilder
pub fn set_download_in_memory( self, download_in_memory: bool, ) -> DownloadConfigurationBuilder
pub fn set_file_verify( self, file_verify: FileVerify, ) -> DownloadConfigurationBuilder
pub fn build(self) -> DownloadConfiguration
Auto Trait Implementations§
impl Freeze for DownloadConfigurationBuilder
impl RefUnwindSafe for DownloadConfigurationBuilder
impl Send for DownloadConfigurationBuilder
impl Sync for DownloadConfigurationBuilder
impl Unpin for DownloadConfigurationBuilder
impl UnwindSafe for DownloadConfigurationBuilder
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