#[non_exhaustive]pub enum LinkAction {
Created(PathBuf),
AlreadyPresent {
path: PathBuf,
text: PathBuf,
},
Replaced(PathBuf),
Removed(PathBuf),
WouldCreate(PathBuf),
WouldReplace(PathBuf),
WouldRemove(PathBuf),
Left(PathBuf, &'static str),
}Expand description
What install_links did, or with dry_run would do, to one link.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Created(PathBuf)
A new link was created.
AlreadyPresent
The link already points at this stuffr; nothing was changed. text
is the link’s own text, which may differ from the target.
Replaced(PathBuf)
An existing entry was replaced: a stale stuffr link, or with
--force a file or foreign link.
Removed(PathBuf)
One of stuffr’s links was removed (--remove).
WouldCreate(PathBuf)
Dry run: the link would be created.
WouldReplace(PathBuf)
Dry run: an existing entry would be replaced.
WouldRemove(PathBuf)
Dry run: the link would be removed.
Left(PathBuf, &'static str)
--remove left this entry alone, for the stated reason.
Implementations§
Trait Implementations§
Source§impl Clone for LinkAction
impl Clone for LinkAction
Source§impl Debug for LinkAction
impl Debug for LinkAction
impl Eq for LinkAction
Source§impl PartialEq for LinkAction
impl PartialEq for LinkAction
impl StructuralPartialEq for LinkAction
Auto Trait Implementations§
impl Freeze for LinkAction
impl RefUnwindSafe for LinkAction
impl Send for LinkAction
impl Sync for LinkAction
impl Unpin for LinkAction
impl UnsafeUnpin for LinkAction
impl UnwindSafe for LinkAction
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> 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§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
Compare self to
key and return true if they are equal.