pub enum HookId {
AdmitPre,
AdmitPost,
TurnRequest,
TurnResponse,
ToolPre,
ToolPost,
RecoverDecided,
SettlePre,
PluginLoad,
PluginRefuse,
PluginQuarantine,
Harness(HarnessPoint),
}Expand description
The closed hook id catalog (§3.1).
Variants§
AdmitPre
AdmitPost
TurnRequest
TurnResponse
ToolPre
ToolPost
RecoverDecided
SettlePre
PluginLoad
PluginRefuse
PluginQuarantine
Harness(HarnessPoint)
harness/<name>/<point> (§3.6); parseable, registry-empty in v1.
Implementations§
Source§impl HookId
impl HookId
Sourcepub fn as_str(&self) -> Cow<'_, str>
pub fn as_str(&self) -> Cow<'_, str>
Canonical wire spelling (§3.1 / §3.6). Borrowed for the closed catalog, owned for the harness namespace.
Sourcepub fn parse(id: &str) -> Option<Self>
pub fn parse(id: &str) -> Option<Self>
Parses a hook id. harness/… ids parse (segments validated) but are
registry misses — see HARNESS_REGISTRY.
Sourcepub fn mode(&self) -> HookMode
pub fn mode(&self) -> HookMode
The catalog row’s mode (§3.1 “Mode” column; §3.3 fixes it per id).
Sourcepub fn payload_kind(&self) -> PayloadKind
pub fn payload_kind(&self) -> PayloadKind
The catalog row’s payload (§3.2).
Sourcepub fn sidecar_subscribable(&self) -> bool
pub fn sidecar_subscribable(&self) -> bool
Whether a sidecar may subscribe this hook in v1 (§3.1 “Sidecar”
column; plugin/* is bus-owned, tier-0 only).
Trait Implementations§
impl Eq for HookId
impl StructuralPartialEq for HookId
Auto Trait Implementations§
impl Forget for HookId
impl Freeze for HookId
impl Move for HookId
impl RefUnwindSafe for HookId
impl Send for HookIdwhere
RawVecInner: Send,
impl Sync for HookIdwhere
RawVecInner: Sync,
impl Unpin for HookId
impl UnsafeUnpin for HookId
impl UnwindSafe for HookIdwhere
RawVecInner: UnwindSafe,
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