pub enum HookEvent {
SessionStart,
SessionEnd,
PreToolUse,
PostToolUse,
BeforeFinish,
AfterSave,
Stop,
}Expand description
Canonical Tuff hook events.
Variants§
SessionStart
A session or subagent starts.
SessionEnd
A main session ends.
PreToolUse
A harness is about to execute a tool.
PostToolUse
A harness has finished executing a tool.
BeforeFinish
A harness is about to finish the current turn or task.
AfterSave
A harness saved a file.
Stop
A harness stop/continuation point.
Implementations§
Trait Implementations§
impl Copy for HookEvent
Source§impl<'de> Deserialize<'de> for HookEvent
impl<'de> Deserialize<'de> for HookEvent
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 Eq for HookEvent
Source§impl Ord for HookEvent
impl Ord for HookEvent
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for HookEvent
impl PartialOrd for HookEvent
impl StructuralPartialEq for HookEvent
Auto Trait Implementations§
impl Freeze 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