#[non_exhaustive]pub enum HookEventName {
Show 21 variants
SessionStart,
UserPromptSubmit,
PreToolUse,
PermissionRequest,
PostToolUse,
PreLLMCall,
PostLLMCall,
PreCompact,
PostCompact,
SubagentStart,
SubagentStop,
Stop,
SessionEnd,
Notification,
PostToolUseFailure,
StopFailure,
PostToolBatch,
Interrupt,
SessionFork,
ToolUseStart,
Unknown(String),
}Expand description
Hook event names: the lowercase-first-letter spelling of every
HookEventKind::all() variant. Open: a future event value is additive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SessionStart
UserPromptSubmit
PreToolUse
PermissionRequest
PostToolUse
PreLLMCall
Explicit rename: the governing rules rules lowercase-first-letter
(preLLMCall), preserving the acronym.
PostLLMCall
Explicit rename: the governing rules rules postLLMCall.
PreCompact
PostCompact
SubagentStart
SubagentStop
Stop
SessionEnd
Notification
PostToolUseFailure
StopFailure
PostToolBatch
Interrupt
SessionFork
ToolUseStart
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for HookEventName
impl Clone for HookEventName
Source§impl Debug for HookEventName
impl Debug for HookEventName
Source§impl<'de> Deserialize<'de> for HookEventName
impl<'de> Deserialize<'de> for HookEventName
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HookEventName
Source§impl PartialEq for HookEventName
impl PartialEq for HookEventName
Source§impl Serialize for HookEventName
impl Serialize for HookEventName
impl StructuralPartialEq for HookEventName
Auto Trait Implementations§
impl Freeze for HookEventName
impl RefUnwindSafe for HookEventName
impl Send for HookEventName
impl Sync for HookEventName
impl Unpin for HookEventName
impl UnsafeUnpin for HookEventName
impl UnwindSafe for HookEventName
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