pub enum HookPhase {
Pre,
Post,
Unphased,
}Expand description
Lifecycle position a hook occupies for dispatcher purposes.
APL’s args/pre_invocation phases dispatch to Pre hooks; APL’s
result/post_invocation phases dispatch to Post hooks. Hook families
outside the request-lifecycle model (identity at request entry,
token-delegate inside authorization) use Unphased and match any
requested phase.
Variants§
Pre
Pre-invocation hook — e.g. cmf.tool_pre_invoke,
cmf.llm_input. Dispatched from APL’s args: field stages
and pre_invocation: steps.
Post
Post-invocation hook — e.g. cmf.tool_post_invoke,
cmf.llm_output. Dispatched from APL’s result: field stages
and post_invocation: steps.
Unphased
Not phase-bound. Covers hook families that fire once per
request without an APL phase concept (identity.resolve,
token.delegate) AND custom hooks the framework doesn’t know
about. APL’s dispatcher matches Unphased against any
requested phase — conservative default that lets unknown
hooks still dispatch.
Trait Implementations§
impl Copy for HookPhase
impl Eq for HookPhase
impl StructuralPartialEq for HookPhase
Auto Trait Implementations§
impl Freeze for HookPhase
impl RefUnwindSafe for HookPhase
impl Send for HookPhase
impl Sync for HookPhase
impl Unpin for HookPhase
impl UnsafeUnpin for HookPhase
impl UnwindSafe for HookPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.