pub struct Downloader { /* private fields */ }
Implementations§
Source§impl Downloader
impl Downloader
pub fn new( config: DownloadConfiguration, client: Arc<Client>, sender: Arc<DownloadSender>, ) -> Downloader
pub fn start_download(&self)
pub fn is_done(&self) -> bool
pub fn status(&self) -> DownloadStatus
pub async fn is_pending_async(&self) -> bool
pub fn pending(&mut self)
pub async fn pending_async(&self)
pub fn stop(&self)
pub async fn stop_async(&self)
Auto Trait Implementations§
impl !Freeze for Downloader
impl !RefUnwindSafe for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl !UnwindSafe 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