pub struct SequentialDownloader { /* private fields */ }Implementations§
Source§impl SequentialDownloader
impl SequentialDownloader
pub fn new( client: Arc<Client>, output_path: PathBuf, headers: Vec<(String, String)>, cookie_helper: CookieHelper, progress_updater: ProgressUpdater, group: Arc<RwLock<RequestGroup>>, ) -> Self
pub async fn execute( &mut self, uri: &str, resume_state: &ResumeState, total_length: u64, ) -> Result<()>
pub async fn execute_with_gaps( &mut self, uri: &str, total_length: u64, completed_ranges: &[(u64, u64)], ) -> GapDownloadResult
pub fn merge_ranges(ranges: &[(u64, u64)]) -> Vec<(u64, u64)>
pub fn find_all_gaps( completed_ranges: &[(u64, u64)], total_length: u64, ) -> Vec<(u64, u64)>
pub async fn execute_with_gaps_with_retry( &mut self, uri: &str, total_length: u64, completed_ranges: &[(u64, u64)], retry_policy: &RetryPolicy, ) -> Result<()>
pub async fn execute_with_retry( &mut self, uri: &str, resume_state: &ResumeState, total_length: u64, retry_policy: &RetryPolicy, ) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for SequentialDownloader
impl !UnwindSafe for SequentialDownloader
impl Freeze for SequentialDownloader
impl Send for SequentialDownloader
impl Sync for SequentialDownloader
impl Unpin for SequentialDownloader
impl UnsafeUnpin for SequentialDownloader
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