#[non_exhaustive]pub enum HookDisposition {
InnerExecuted,
InnerErrored,
DeniedBefore,
ReplacedBefore,
ResultTooLarge,
}Expand description
How a tool call resolved, passed to the AfterHook.
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.
InnerExecuted
The inner handler ran and returned Ok.
InnerErrored
The inner handler ran and returned Err.
DeniedBefore
The before-hook returned HookOutcome::Deny.
ReplacedBefore
The before-hook returned HookOutcome::Replace.
ResultTooLarge
The result (from inner or replace) exceeded max_result_bytes
and was substituted with a structured error.
Trait Implementations§
Source§impl Clone for HookDisposition
impl Clone for HookDisposition
Source§fn clone(&self) -> HookDisposition
fn clone(&self) -> HookDisposition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookDisposition
impl Debug for HookDisposition
impl Copy for HookDisposition
Auto Trait Implementations§
impl Freeze for HookDisposition
impl RefUnwindSafe for HookDisposition
impl Send for HookDisposition
impl Sync for HookDisposition
impl Unpin for HookDisposition
impl UnsafeUnpin for HookDisposition
impl UnwindSafe for HookDisposition
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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