pub struct SimpleDownloader;Trait Implementations§
Source§impl Downloader for SimpleDownloader
impl Downloader for SimpleDownloader
fn download<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
output_file: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn download_ts_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
url: &'life1 str,
output_file: &'life2 mut BufWriter<File>,
pb: &'life3 mut ProgressBar,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for SimpleDownloader
impl RefUnwindSafe for SimpleDownloader
impl Send for SimpleDownloader
impl Sync for SimpleDownloader
impl Unpin for SimpleDownloader
impl UnwindSafe for SimpleDownloader
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