pub struct DownloadManager<'a> { /* private fields */ }
Implementations§
Source§impl<'a> DownloadManager<'a>
impl<'a> DownloadManager<'a>
Sourcepub fn builder() -> DownloadManagerBuilder<'a>
pub fn builder() -> DownloadManagerBuilder<'a>
Create an instance of DownloadManager
using the builder syntax
Source§impl DownloadManager<'_>
impl DownloadManager<'_>
Sourcepub async fn start_download(
&self,
callback: impl AsyncFn(Event),
) -> Result<Summary, BuilderError>
pub async fn start_download( &self, callback: impl AsyncFn(Event), ) -> Result<Summary, BuilderError>
Start download
Auto Trait Implementations§
impl<'a> Freeze for DownloadManager<'a>
impl<'a> !RefUnwindSafe for DownloadManager<'a>
impl<'a> Send for DownloadManager<'a>
impl<'a> Sync for DownloadManager<'a>
impl<'a> Unpin for DownloadManager<'a>
impl<'a> !UnwindSafe for DownloadManager<'a>
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