#[repr(C)]pub struct AcqTextStatus { /* private fields */ }
Implementations§
Source§impl AcqTextStatus
impl AcqTextStatus
Sourcepub unsafe fn set_callback(
self: Pin<&mut Self>,
progress: *mut AcquireProgress<'_>,
)
pub unsafe fn set_callback( self: Pin<&mut Self>, progress: *mut AcquireProgress<'_>, )
§Safety
Setting the Callback requires a raw mutable pointer to AcquireProgress.
AcquireProgress must not be moved in memory or will segfault when AcqTextStatus calls it.
Source§impl AcqTextStatus
impl AcqTextStatus
Sourcepub fn current_cps(&self) -> u64
pub fn current_cps(&self) -> u64
The number of bytes fetched as of the most recent call to pkgAcquireStatus::Pulse, including local items.
Source§impl AcqTextStatus
impl AcqTextStatus
Sourcepub fn elapsed_time(&self) -> u64
pub fn elapsed_time(&self) -> u64
The amount of time that has elapsed since the download started.
Source§impl AcqTextStatus
impl AcqTextStatus
Sourcepub fn fetched_bytes(&self) -> u64
pub fn fetched_bytes(&self) -> u64
The total number of bytes accounted for by items that were successfully fetched.
Source§impl AcqTextStatus
impl AcqTextStatus
Sourcepub fn current_bytes(&self) -> u64
pub fn current_bytes(&self) -> u64
The number of bytes fetched as of the most recent call to pkgAcquireStatus::Pulse, including local items.
Source§impl AcqTextStatus
impl AcqTextStatus
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
The total number of bytes that need to be fetched.
This member is inaccurate, as new items might be enqueued while the download is in progress!
Trait Implementations§
Source§impl ExternType for AcqTextStatus
impl ExternType for AcqTextStatus
impl UniquePtrTarget for AcqTextStatus
Auto Trait Implementations§
impl !Freeze for AcqTextStatus
impl RefUnwindSafe for AcqTextStatus
impl !Send for AcqTextStatus
impl !Sync for AcqTextStatus
impl !Unpin for AcqTextStatus
impl UnwindSafe for AcqTextStatus
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