pub struct SpacePlan {
pub free: u64,
pub needed: u64,
pub keep_free: u64,
pub fits: bool,
pub free_after: u64,
pub keep_archive: bool,
pub normal_needs: u64,
pub in_place_needs: u64,
pub either: bool,
pub reclaims: bool,
pub solid_block_bound: bool,
pub archive_kept_whole: bool,
}Expand description
Whether an extraction fits, in the numbers a person needs to decide.
Fields§
§free: u64Usable free space, counting files a crashed run left that will be deleted before continuing.
needed: u64Free space the extraction needs at its busiest moment, in the mode asked for.
keep_free: u64§fits: bool§free_after: u64Free space once finished, if it fits.
keep_archive: boolThe plan is for an extraction that keeps the archive.
normal_needs: u64What an extraction that keeps the archive needs free: every extracted file, as for any other extractor, plus the saved index.
in_place_needs: u64What extracting in place needs free. Equal to needed unless the
archive is kept.
either: boolNothing is extracted yet, so either mode can still be chosen. A half-extracted archive continues in the mode it started in.
reclaims: boolFalse when the output is on another disk, so freeing the archive doesn’t help it.
solid_block_bound: boolThe shortfall comes from one solid block that can only be freed once all of it is out.
archive_kept_whole: boolThe archive is one compressed stream (a .tar.gz) on a filesystem
that can’t free space inside a file, such as FAT32 or exFAT, so it
stays whole until the extraction completes: needed is room for
every extracted file next to it.
Implementations§
Source§impl SpacePlan
impl SpacePlan
Sourcepub fn normal_fits(&self) -> bool
pub fn normal_fits(&self) -> bool
Whether an extraction that keeps the archive would fit too.
pub fn in_place_fits(&self) -> bool
Auto Trait Implementations§
impl Freeze for SpacePlan
impl RefUnwindSafe for SpacePlan
impl Send for SpacePlan
impl Sync for SpacePlan
impl Unpin for SpacePlan
impl UnsafeUnpin for SpacePlan
impl UnwindSafe for SpacePlan
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
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> ⓘ
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> ⓘ
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