pub enum HookPhase {
PreRun,
PostRun,
PreSessionStart,
PostSessionStart,
PreTurn,
PostTurn,
PreToolUse,
PostToolUse,
}Variants§
PreRun
PostRun
PreSessionStart
PostSessionStart
PreTurn
PostTurn
PreToolUse
Called before a tool (command/file-change) executes, via the approval loop.
PostToolUse
Reserved for post-execution tool events (not yet wired).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HookPhase
impl<'de> Deserialize<'de> for HookPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for HookPhase
impl Eq for HookPhase
impl StructuralPartialEq for HookPhase
Auto Trait Implementations§
impl Freeze for HookPhase
impl RefUnwindSafe for HookPhase
impl Send for HookPhase
impl Sync for HookPhase
impl Unpin for HookPhase
impl UnsafeUnpin for HookPhase
impl UnwindSafe for HookPhase
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