pub enum HookEvent {
PreToolUse,
Write,
}Expand description
Which hook event the caller asked us to handle (--event). The default is the
pre-tool decision path, so an invocation without the flag is byte-identical to
the pre-V1.1 behaviour — a typo or a missing flag can never disarm the shell
gate.
Variants§
PreToolUse
Pre-tool: judge a shell command (the original contract).
Write
File-write observation: label the written path for provenance so a tainted session’s output carries the taint into a later reader. Observation only — it never blocks, and it never touches a command verdict.
Trait Implementations§
impl Copy for HookEvent
impl Eq for HookEvent
impl StructuralPartialEq for HookEvent
Auto Trait Implementations§
impl Forget for HookEvent
impl Freeze for HookEvent
impl Move for HookEvent
impl RefUnwindSafe for HookEvent
impl Send for HookEvent
impl Sync for HookEvent
impl Unpin for HookEvent
impl UnsafeUnpin for HookEvent
impl UnwindSafe for HookEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.