Struct mc_downloader::client::DownloaderService
source · pub struct DownloaderService { /* private fields */ }
Implementations§
source§impl DownloaderService
impl DownloaderService
pub fn new(download_folder: PathBuf) -> Self
pub fn with_client(&mut self, client: Client) -> &mut Self
pub fn with_downloads(&mut self, downloads: Vec<DownloadData>) -> &mut Self
pub fn with_parallel_requests(&mut self, parallel_requests: u16) -> &mut Self
pub fn with_retries(&mut self, retries: u16) -> &mut Self
pub fn with_download_folder(&mut self, download_folder: PathBuf) -> &mut Self
pub fn run( &self, progress: Option<Progress> ) -> Result<Vec<DownloadResult>, JoinError>
Trait Implementations§
source§impl Clone for DownloaderService
impl Clone for DownloaderService
source§fn clone(&self) -> DownloaderService
fn clone(&self) -> DownloaderService
Returns a copy of the value. Read more
1.0.0 · 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 DownloaderService
impl Send for DownloaderService
impl Sync for DownloaderService
impl Unpin for DownloaderService
impl !UnwindSafe for DownloaderService
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