pub enum EventClass {
Write,
Read,
Index,
Transcript,
HotPath,
}Expand description
Coarse classification of a HookEvent for per-class deadline
enforcement.
Copy + Hash so it can be a HashMap key in downstream code
(today the deadline table is a match, not a map; the derive
cost is zero and keeps options open for the doctor).
Variants§
Write
State-mutating events: store / delete / promote / link / consolidate / governance / archive.
Read
Query events: recall / search. Hottest path; tightest non-index budget.
Index
HNSW index lifecycle events. Background maintenance loop.
Transcript
Transcript I-track events. Same 5s budget as writes; called out separately because the payload shape and call-site pressure profile differ.
HotPath
G10: synchronous hot-path hooks that fire inside the recall
p95 budget (50ms). Today’s only inhabitant is
HookEvent::PreRecallExpand; future synchronous hot-path
hooks (e.g. a pre_search_expand) would join this class. The
50ms ceiling is below the v0.6.3 recall budget by design — a
hook that can’t return a decision in 50ms cannot be wired on
the read path without blowing SLO.
Trait Implementations§
Source§impl Clone for EventClass
impl Clone for EventClass
Source§fn clone(&self) -> EventClass
fn clone(&self) -> EventClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EventClass
Source§impl Debug for EventClass
impl Debug for EventClass
impl Eq for EventClass
Source§impl Hash for EventClass
impl Hash for EventClass
Source§impl PartialEq for EventClass
impl PartialEq for EventClass
Source§fn eq(&self, other: &EventClass) -> bool
fn eq(&self, other: &EventClass) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventClass
Auto Trait Implementations§
impl Freeze for EventClass
impl RefUnwindSafe for EventClass
impl Send for EventClass
impl Sync for EventClass
impl Unpin for EventClass
impl UnsafeUnpin for EventClass
impl UnwindSafe for EventClass
Blanket Implementations§
impl<T> Boilerplate for T
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§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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more