pub enum HookSignal {
Running,
NeedsInput,
Interrupted,
TurnFinished,
}Expand description
One coarse lifecycle signal. This is the COMPLETE vocabulary the lane
can express — deliberately much smaller than mission status, so no hook
payload can ever spell a state transition (FeatureFailed, Blocked,
Complete, grant mutations): the mapping is an enum, not a string.
Variants§
Running
The session is alive and working (sessionStart).
NeedsInput
The session appears to want operator attention (cursor: a headless
tool call was refused by the permission posture —
postToolUseFailure with failure_type == "permission_denied").
Interrupted
The session ended abnormally (sessionEnd with
aborted/error/window_close/user_close).
TurnFinished
The session finished its turn (stop, or sessionEnd with
completed).
Implementations§
Trait Implementations§
Source§impl Clone for HookSignal
impl Clone for HookSignal
Source§fn clone(&self) -> HookSignal
fn clone(&self) -> HookSignal
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 moreimpl Copy for HookSignal
Source§impl Debug for HookSignal
impl Debug for HookSignal
Source§impl<'de> Deserialize<'de> for HookSignal
impl<'de> Deserialize<'de> for HookSignal
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 HookSignal
Source§impl PartialEq for HookSignal
impl PartialEq for HookSignal
Source§impl Serialize for HookSignal
impl Serialize for HookSignal
impl StructuralPartialEq for HookSignal
Auto Trait Implementations§
impl Freeze for HookSignal
impl RefUnwindSafe for HookSignal
impl Send for HookSignal
impl Sync for HookSignal
impl Unpin for HookSignal
impl UnsafeUnpin for HookSignal
impl UnwindSafe for HookSignal
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