pub struct Downloader { /* private fields */ }Implementations§
Source§impl Downloader
impl Downloader
pub fn new<T: IndicatorFactory + Sync + Send + 'static>(indicator: T) -> Self
pub fn with_ureq_agent(self, agent: Agent) -> Self
pub fn with_max_current_downloads(self, max_current_downloads: usize) -> Self
pub fn with_file(self, file: File) -> Self
pub fn with_files(self, files: Vec<File>) -> Self
pub fn with_indicator<T: IndicatorFactory + Send + Sync + 'static>( self, indicator: T, ) -> Self
pub fn start(self) -> Result<(), String>
Auto 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