pub struct AcqWorker { /* private fields */ }Implementations§
Source§impl AcqWorker
impl AcqWorker
Sourcepub fn item(&self) -> Result<UniquePtr<ItemDesc>, Exception>
pub fn item(&self) -> Result<UniquePtr<ItemDesc>, Exception>
The queue entry that is currently being downloaded.
Sourcepub fn current_size(&self) -> u64
pub fn current_size(&self) -> u64
How many bytes of the file have been downloaded.
Zero if the current progress of the file cannot be determined.
Sourcepub fn total_size(&self) -> u64
pub fn total_size(&self) -> u64
The total number of bytes to be downloaded.
Zero if the total size of the final is unknown.
Trait Implementations§
Source§impl ExternType for AcqWorker
impl ExternType for AcqWorker
impl VectorElement for AcqWorker
Auto Trait Implementations§
impl !Freeze for AcqWorker
impl RefUnwindSafe for AcqWorker
impl !Send for AcqWorker
impl !Sync for AcqWorker
impl !Unpin for AcqWorker
impl UnwindSafe for AcqWorker
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