pub enum InstallState {
Unchanged,
HistoricalSafe,
UserModified,
Unknown,
}Expand description
Outcome of comparing a file on disk against the embedded history.
Variants§
Unchanged
Hash matches the current shipped version — nothing to do.
HistoricalSafe
Hash matches a previously-shipped version — safe to overwrite.
UserModified
Hash is unknown — assumed to be a user modification. Install
should refuse without --force.
Unknown
The skill is not tracked in the embedded history — we cannot classify it, treat it as user-modified by default.
Trait Implementations§
Source§impl Clone for InstallState
impl Clone for InstallState
Source§fn clone(&self) -> InstallState
fn clone(&self) -> InstallState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallState
impl Debug for InstallState
Source§impl PartialEq for InstallState
impl PartialEq for InstallState
Source§fn eq(&self, other: &InstallState) -> bool
fn eq(&self, other: &InstallState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InstallState
impl Eq for InstallState
impl StructuralPartialEq for InstallState
Auto Trait Implementations§
impl Freeze for InstallState
impl RefUnwindSafe for InstallState
impl Send for InstallState
impl Sync for InstallState
impl Unpin for InstallState
impl UnsafeUnpin for InstallState
impl UnwindSafe for InstallState
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.