pub enum HookPoint {
Show 25 variants
ComponentPreInit,
ComponentPostInit,
ComponentPreShutdown,
ComponentPostShutdown,
RequestPreDispatch,
RequestPostDispatch,
SignalPreDispatch,
SignalPostDispatch,
ChildPreSpawn,
ChildPostSpawn,
ChildPreRun,
ChildPostRun,
ChannelPreCreate,
ChannelPostCreate,
ChannelPreDestroy,
ChannelPostDestroy,
ToolPreExecute,
ToolPostExecute,
AuthPreCheck,
AuthPostCheck,
AuthOnGrant,
BusPreBroadcast,
BusPostBroadcast,
BusOnRegister,
BusOnUnregister,
}Expand description
All lifecycle points where hooks can intercept.
Variants§
ComponentPreInit
Before Component::init().
ComponentPostInit
After Component::init() succeeds.
ComponentPreShutdown
Before Component::shutdown().
ComponentPostShutdown
After Component::shutdown().
RequestPreDispatch
Before Component::on_request().
RequestPostDispatch
After Component::on_request() completes.
SignalPreDispatch
Before signal is dispatched to component.
SignalPostDispatch
After signal dispatch completes.
ChildPreSpawn
Before ChildSpawner::spawn().
ChildPostSpawn
After child is spawned successfully.
ChildPreRun
Before RunnableChild::run().
ChildPostRun
After RunnableChild::run() completes.
ChannelPreCreate
Before OrcsEngine::spawn_runner*().
ChannelPostCreate
After channel runner is created.
ChannelPreDestroy
Before channel runner loop exits.
ChannelPostDestroy
After channel is fully torn down.
ToolPreExecute
Before Lua tool function executes.
ToolPostExecute
After Lua tool function completes.
AuthPreCheck
Before permission check.
AuthPostCheck
After permission check.
AuthOnGrant
On dynamic permission grant.
BusPreBroadcast
Before EventBus::broadcast().
BusPostBroadcast
After EventBus::broadcast().
BusOnRegister
On component registration with EventBus.
BusOnUnregister
On component unregistration from EventBus.
Implementations§
Source§impl HookPoint
impl HookPoint
Sourcepub const KNOWN_PREFIXES: &'static [&'static str]
pub const KNOWN_PREFIXES: &'static [&'static str]
All known HookPoint prefix categories (for shorthand parsing in Phase 3).
Sourcepub fn is_pre(&self) -> bool
pub fn is_pre(&self) -> bool
Returns true if this is a “pre” hook (can modify/abort the operation).