pub enum InstallHookOutcome {
Created,
Appended,
AlreadyInstalled,
Updated,
}Expand description
Outcome of dodot transform install-hook.
Variants§
Created
Hook file did not exist; we created it with shebang + our block.
Appended
Hook file existed; we appended our block to it. Existing content is preserved.
AlreadyInstalled
Hook was already installed and matches the current managed block exactly — no change.
Updated
Hook was installed but the managed block was an older version
(e.g. didn’t yet call dodot refresh). We replaced the
outdated block in place. Existing non-managed content in the
hook file is preserved.
Trait Implementations§
Source§impl Clone for InstallHookOutcome
impl Clone for InstallHookOutcome
Source§fn clone(&self) -> InstallHookOutcome
fn clone(&self) -> InstallHookOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 InstallHookOutcome
impl Debug for InstallHookOutcome
Auto Trait Implementations§
impl Freeze for InstallHookOutcome
impl RefUnwindSafe for InstallHookOutcome
impl Send for InstallHookOutcome
impl Sync for InstallHookOutcome
impl Unpin for InstallHookOutcome
impl UnsafeUnpin for InstallHookOutcome
impl UnwindSafe for InstallHookOutcome
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