pub enum DispatchPhase {
Pre,
Post,
}Expand description
Where in the request lifecycle a plugin dispatch is happening.
Threads through PluginInvocation so the invoker can select the
right hook entry from a plugin that registered for both pre and
post phases (e.g. cmf.tool_pre_invoke AND cmf.tool_post_invoke).
APL’s four phases map to two dispatch phases:
args:field stages →Prepre_invocation:steps →Preresult:field stages →Postpost_invocation:steps →Post
Plugins that need to discriminate args vs policy (same Pre
from the dispatcher’s perspective) inspect PluginContext::hook_name()
inside their handler — the hook-routing layer doesn’t slice phase
finer than Pre/Post.
Variants§
Trait Implementations§
Source§impl Clone for DispatchPhase
impl Clone for DispatchPhase
Source§fn clone(&self) -> DispatchPhase
fn clone(&self) -> DispatchPhase
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 DispatchPhase
Source§impl Debug for DispatchPhase
impl Debug for DispatchPhase
impl Eq for DispatchPhase
Source§impl PartialEq for DispatchPhase
impl PartialEq for DispatchPhase
impl StructuralPartialEq for DispatchPhase
Auto Trait Implementations§
impl Freeze for DispatchPhase
impl RefUnwindSafe for DispatchPhase
impl Send for DispatchPhase
impl Sync for DispatchPhase
impl Unpin for DispatchPhase
impl UnsafeUnpin for DispatchPhase
impl UnwindSafe for DispatchPhase
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
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§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
Compare self to
key and return true if they are equal.