pub enum HookWarning {
Skipped {
path: PathBuf,
kind: HookKind,
conflict: HookConflict,
},
}Expand description
Structured warning surfaced by CodexSurface::install_detailed when
the hook write was skipped (or otherwise non-fatally adjusted). Never
raised as an error — the install completes; the warning rides
alongside the report.
Variants§
Skipped
The hook file is owned by another tool (HookConflict). klasp
did not modify it. The user should integrate the gate manually,
e.g. by adding klasp gate --agent codex --trigger commit to
their pre-commit framework’s hook list.
Trait Implementations§
Source§impl Clone for HookWarning
impl Clone for HookWarning
Source§fn clone(&self) -> HookWarning
fn clone(&self) -> HookWarning
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 HookWarning
impl Debug for HookWarning
Source§impl PartialEq for HookWarning
impl PartialEq for HookWarning
Source§fn eq(&self, other: &HookWarning) -> bool
fn eq(&self, other: &HookWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HookWarning
impl StructuralPartialEq for HookWarning
Auto Trait Implementations§
impl Freeze for HookWarning
impl RefUnwindSafe for HookWarning
impl Send for HookWarning
impl Sync for HookWarning
impl Unpin for HookWarning
impl UnsafeUnpin for HookWarning
impl UnwindSafe for HookWarning
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.