pub struct Reads {
pub done: AtomicU64,
pub total: AtomicU64,
}Expand description
How much of the archive its readers have read. Opening a compressed tar decodes all of it before anything else, which takes minutes for a large one, so front ends show this from another thread while an archive opens.
Fields§
§done: AtomicU64§total: AtomicU64How much the current pass reads in all: the archive’s length, or less when a resumed compressed tar is read from its resume point.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Reads
impl RefUnwindSafe for Reads
impl Send for Reads
impl Sync for Reads
impl Unpin for Reads
impl UnsafeUnpin for Reads
impl UnwindSafe for Reads
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more