pub struct Downloader {
pub link: Link,
pub task_limit: TaskType,
pub outdir: String,
pub retry: RetryType,
pub video_only: bool,
pub image_only: bool,
pub multi_progress: Arc<Mutex<MultiProgress>>,
pub info: Arc<Mutex<DownloaderInfo>>,
pub verbose: bool,
pub creator_name: Arc<Mutex<Option<String>>>,
}Fields§
§link: Link§task_limit: TaskType§outdir: String§retry: RetryType§video_only: bool§image_only: bool§multi_progress: Arc<Mutex<MultiProgress>>§info: Arc<Mutex<DownloaderInfo>>§verbose: bool§creator_name: Arc<Mutex<Option<String>>>Implementations§
Source§impl Downloader
impl Downloader
Sourcepub async fn download_post(
&mut self,
pid: String,
status: StatusBar,
) -> Result<DownloaderInfo>
pub async fn download_post( &mut self, pid: String, status: StatusBar, ) -> Result<DownloaderInfo>
Downloads all files in a specific post
§Arguments
pid- post id to downloadpage- Current page information for progress display
Source§impl Downloader
impl Downloader
Sourcepub async fn fetch_page(&self) -> Result<Vec<String>>
pub async fn fetch_page(&self) -> Result<Vec<String>>
This function will collect all post id from page(s).
Source§impl Downloader
impl Downloader
Source§impl Downloader
impl Downloader
Source§impl Downloader
impl Downloader
pub async fn failed_file(&self) -> Vec<String>
pub async fn print_reports(&self)
Trait Implementations§
Source§impl Clone for Downloader
impl Clone for Downloader
Source§fn clone(&self) -> Downloader
fn clone(&self) -> Downloader
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 !RefUnwindSafe for Downloader
impl !UnwindSafe for Downloader
impl Freeze for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl UnsafeUnpin for Downloader
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