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 payload’s bytes land at this destination.
Fields
destination: Utf8PathBufThe SKILL.md path written.
Unchanged
The destination already holds the payload’s bytes.
Fields
destination: Utf8PathBufThe SKILL.md path left alone.
Sweep
A recorded leftover the payload no longer names 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 SKILL.md path removed.
KeptEdited
A destination holding bytes neither the payload nor the record accounts for is the user’s now, and an uninstall leaves it.
Fields
destination: Utf8PathBufThe edited SKILL.md path 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 Freeze 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.