pub enum Action {
Write {
destination: Utf8PathBuf,
},
Unchanged {
destination: Utf8PathBuf,
},
Sweep {
destination: Utf8PathBuf,
},
SweepFailed {
destination: Utf8PathBuf,
error: String,
},
Remove {
destination: Utf8PathBuf,
},
KeptEdited {
destination: Utf8PathBuf,
},
KeptDirectory {
directory: Utf8PathBuf,
},
RecordUnwritten {
record: Utf8PathBuf,
},
}Expand description
One thing an install or uninstall did, or — in a preview — would do.
Variants§
Write
The embedded bytes land at this destination.
Fields
destination: Utf8PathBufThe package file written.
Unchanged
The destination already holds the embedded bytes.
Fields
destination: Utf8PathBufThe package file left alone.
Sweep
A recorded leftover the embedded skills no longer name is removed.
Fields
destination: Utf8PathBufThe leftover taken back.
SweepFailed
A leftover could not be removed; it stays for the operator.
Remove
An installed destination is removed.
Fields
destination: Utf8PathBufThe package file removed.
KeptEdited
A destination holding bytes neither the embedded skills nor the record accounts for is the user’s now: an uninstall leaves it, and so does the sweep of the root an earlier release shared the gates from.
Fields
destination: Utf8PathBufThe edited file left in place.
KeptDirectory
A directory survives a removal because something else lives in it.
Fields
directory: Utf8PathBufThe directory kept.
RecordUnwritten
The record could not be written; a later install may ask for
--force it should not need.
Fields
record: Utf8PathBufThe record path that did not write.
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Forget for Action
impl Freeze for Action
impl Move for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.