pub enum HookClass {
Admit,
Turn,
Tool,
Recover,
Settle,
Harness,
Plugin,
}Expand description
The grant class a hook belongs to (§5.1). A veto:* grant is keyed by
this class, and the §7.2 epoch rule hangs off
HookClass::is_drain_phase.
Variants§
Admit
Turn
Tool
Recover
Settle
Harness
The harness/<name>/* namespace (§3.6); empty registry in v1.
Plugin
Bus lifecycle (plugin/load|refuse|quarantine, §3.2.9); tier-0
only, never sidecar-subscribable.
Implementations§
Source§impl HookClass
impl HookClass
Sourcepub fn is_drain_phase(self) -> bool
pub fn is_drain_phase(self) -> bool
The §7.2 epoch rule’s single source: frames for drain-phase hooks
(turn/*, tool/*, recover/decided, settle/pre) carry the
fencing epoch; admit/* and plugin/* run before a drain exists
(or are bus lifecycle) and their frames omit the key entirely.
Harness points are declared by their owning harness together with the registry entry; the v1 registry is empty, so no dispatch can ever consult this arm.
Trait Implementations§
impl Copy for HookClass
impl Eq for HookClass
impl StructuralPartialEq for HookClass
Auto Trait Implementations§
impl Forget for HookClass
impl Freeze for HookClass
impl Move for HookClass
impl RefUnwindSafe for HookClass
impl Send for HookClass
impl Sync for HookClass
impl Unpin for HookClass
impl UnsafeUnpin for HookClass
impl UnwindSafe for HookClass
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