pub enum HookInstallOutcome {
Installed,
Refreshed,
UnknownHookPresent,
Chained,
}Expand description
Outcome categories the installer reports back to the CLI. Kept
granular so the --install-hooks log line is informative without
requiring callers to re-inspect the filesystem.
Variants§
Installed
Wrote a fresh hook (no prior file existed).
Refreshed
Re-wrote our own hook from a prior version (idempotent refresh).
UnknownHookPresent
A non-Aperion hook is in place; we did NOT overwrite. Caller
must re-invoke with chain_existing = true to proceed.
Chained
chain_existing = true was supplied and we moved the prior
hook aside + installed ours, chaining via exec at the end.
Trait Implementations§
Source§impl Clone for HookInstallOutcome
impl Clone for HookInstallOutcome
Source§fn clone(&self) -> HookInstallOutcome
fn clone(&self) -> HookInstallOutcome
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 moreimpl Copy for HookInstallOutcome
Source§impl Debug for HookInstallOutcome
impl Debug for HookInstallOutcome
impl Eq for HookInstallOutcome
Source§impl PartialEq for HookInstallOutcome
impl PartialEq for HookInstallOutcome
Source§fn eq(&self, other: &HookInstallOutcome) -> bool
fn eq(&self, other: &HookInstallOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HookInstallOutcome
Auto Trait Implementations§
impl Freeze for HookInstallOutcome
impl RefUnwindSafe for HookInstallOutcome
impl Send for HookInstallOutcome
impl Sync for HookInstallOutcome
impl Unpin for HookInstallOutcome
impl UnsafeUnpin for HookInstallOutcome
impl UnwindSafe for HookInstallOutcome
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.