pub struct DownloadService { /* private fields */ }
Implementations§
Source§impl DownloadService
impl DownloadService
pub fn new() -> Self
pub fn start_service(&mut self)
pub fn set_multi_thread(self, multi_thread: bool) -> DownloadService
pub fn set_worker_thread_count( self, worker_thread_count: usize, ) -> DownloadService
pub fn set_parallel_count(&mut self, parallel_count: usize)
pub fn add_downloader( &mut self, config: DownloadConfiguration, ) -> DownloadOperation
pub fn is_finished(&self) -> bool
pub fn stop(&self)
Auto Trait Implementations§
impl Freeze for DownloadService
impl !RefUnwindSafe for DownloadService
impl Send for DownloadService
impl Sync for DownloadService
impl Unpin for DownloadService
impl !UnwindSafe for DownloadService
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