pub enum HookResult {
Success {
hook_name: String,
hook_event: String,
tool_use_id: String,
},
Blocking {
blocking_error: String,
command: String,
prevent_continuation: bool,
stop_reason: String,
},
Cancelled,
NonBlockingError {
hook_name: String,
hook_event: String,
tool_use_id: String,
stderr: String,
stdout: String,
exit_code: i32,
},
}Expand description
Result of a hook execution
Variants§
Auto Trait Implementations§
impl Freeze for HookResult
impl RefUnwindSafe for HookResult
impl Send for HookResult
impl Sync for HookResult
impl Unpin for HookResult
impl UnsafeUnpin for HookResult
impl UnwindSafe for HookResult
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