pub struct Pending {
pub targets: Vec<PathBuf>,
pub entries: Vec<Entry>,
pub bytes: u64,
pub unpriced: usize,
pub view: String,
pub answer: Answer,
/* private fields */
}Expand description
The question the delete key asks, and everything it is holding while it asks.
It carries the targets the plan resolved, not “whatever is marked when the answer is taken”. The tree moves while a dialog is up — claims arrive, prices land, an earlier deletion finishes — and a deed that re-read the marks at the moment of the answer would remove a different set from the one the box described.
§It lists the batch, and that is the safety half of orthogonal selection
A selection that is independent of what is visible creates a hazard that did not exist when the two were the same thing, and the mitigation is that the box shows what it is holding — grouped by kind, with the hidden entries named as hidden and every one of them unmarkable from here. The answer to a surprise has to be better than “cancel and start again”.
Fields§
§targets: Vec<PathBuf>Exactly what will be removed.
entries: Vec<Entry>Every directory the batch touched, refused ones included — what the listing draws.
bytes: u64What the plan says that is worth, which is only the part anybody has priced.
unpriced: usizeHow many of the targets carry no price.
view: StringHow the view that is hiding some of this spells itself, so the warning can name it.
answer: AnswerWhich answer is highlighted. Starts on cancel — the key a reader presses to get rid of what is in front of them has to be the safe one.
Implementations§
Source§impl Pending
impl Pending
Sourcepub fn entries(&self) -> &[Entry]
pub fn entries(&self) -> &[Entry]
The lines, in the order they are drawn: grouped by kind, and by path inside a group.
How many of the entries the current view is hiding.
Sourcepub fn unrecoverable(&self) -> usize
pub fn unrecoverable(&self) -> usize
How many lines of this batch are things nothing brings back.
Counted over the lines that are actually going to be removed, refusals excluded: a directory the safety model is leaving standing is not one this warning is about, and counting it would put a red line over a batch that takes nothing precious.
Trait Implementations§
impl Eq for Pending
impl StructuralPartialEq for Pending
Auto Trait Implementations§
impl Freeze for Pending
impl RefUnwindSafe for Pending
impl Send for Pending
impl Sync for Pending
impl Unpin for Pending
impl UnsafeUnpin for Pending
impl UnwindSafe for Pending
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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