pub struct PersistenceProgress {
pub phase: PersistencePhase,
pub bytes_downloaded: u64,
pub bytes_written: u64,
pub total_bytes: u64,
pub download_percent: u8,
pub write_percent: u8,
pub pending_writes: usize,
}Expand description
Combined progress tracking.
Fields§
§phase: PersistencePhaseCurrent phase.
bytes_downloaded: u64Bytes downloaded from network.
bytes_written: u64Bytes written to disk.
total_bytes: u64Total expected bytes (0 = unknown).
download_percent: u8Download percentage (0-100).
write_percent: u8Write percentage (0-100).
pending_writes: usizePending disk writes.
Trait Implementations§
Source§impl Clone for PersistenceProgress
impl Clone for PersistenceProgress
Source§fn clone(&self) -> PersistenceProgress
fn clone(&self) -> PersistenceProgress
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PersistenceProgress
impl Debug for PersistenceProgress
Source§impl Default for PersistenceProgress
impl Default for PersistenceProgress
Source§fn default() -> PersistenceProgress
fn default() -> PersistenceProgress
Returns the “default value” for a type. Read more
impl Copy for PersistenceProgress
Auto Trait Implementations§
impl Freeze for PersistenceProgress
impl RefUnwindSafe for PersistenceProgress
impl Send for PersistenceProgress
impl Sync for PersistenceProgress
impl Unpin for PersistenceProgress
impl UnwindSafe for PersistenceProgress
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