pub struct DownloadOperation { /* private fields */ }
Implementations§
Source§impl DownloadOperation
impl DownloadOperation
pub fn new( downloader: Arc<Downloader>, download_receiver: DownloadReceiver, ) -> DownloadOperation
pub fn status(&self) -> DownloadStatus
pub fn downloaded_size(&self) -> u64
pub fn total_size(&self) -> u64
pub fn progress(&self) -> f64
pub fn bytes(&self) -> Vec<u8> ⓘ
pub fn is_done(&self) -> bool
pub fn is_error(&self) -> bool
pub fn error(&self) -> DownloadError
pub fn stop(&self)
Auto Trait Implementations§
impl Freeze for DownloadOperation
impl !RefUnwindSafe for DownloadOperation
impl Send for DownloadOperation
impl Sync for DownloadOperation
impl Unpin for DownloadOperation
impl !UnwindSafe for DownloadOperation
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