pub struct ConcurrentDownloader { /* private fields */ }Implementations§
Source§impl ConcurrentDownloader
impl ConcurrentDownloader
pub fn new( client: Arc<Client>, output_path: PathBuf, headers: Vec<(String, String)>, cookie_helper: CookieHelper, progress_updater: ProgressUpdater, group: Arc<RwLock<RequestGroup>>, mmap_threshold: u64, file_allocation: String, ) -> Self
pub async fn execute( &mut self, uri: &str, total_length: u64, resume_state: &ResumeState, max_retries_per_segment: u32, ) -> Result<ConcurrentDownloadResult>
pub async fn execute_with_retry( &mut self, uri: &str, total_length: u64, resume_state: &ResumeState, max_retries_per_segment: u32, ) -> Result<ConcurrentDownloadResult>
Auto Trait Implementations§
impl !RefUnwindSafe for ConcurrentDownloader
impl !UnwindSafe for ConcurrentDownloader
impl Freeze for ConcurrentDownloader
impl Send for ConcurrentDownloader
impl Sync for ConcurrentDownloader
impl Unpin for ConcurrentDownloader
impl UnsafeUnpin for ConcurrentDownloader
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