EventKind

Struct EventKind 

Source
#[repr(transparent)]
pub struct EventKind(pub u16);
Expand description

Event kind encoded as a 16-bit value.

The upper 4 bits encode the category, the lower 12 bits encode the specific type. This allows 16 categories with 4096 event types each (65536 total).

Category allocation:

  • 0x0xxx: System events
  • 0x1xxx: Trajectory events
  • 0x2xxx: Scope events
  • 0x3xxx: Artifact events
  • 0x4xxx: Note events
  • 0x5xxx: Turn events
  • 0x6xxx: Agent events
  • 0x7xxx: Lock events
  • 0x8xxx: Message events
  • 0x9xxx: Delegation events
  • 0xAxxx: Handoff events
  • 0xBxxx: Edge events
  • 0xCxxx: Evolution events
  • 0xDxxx: Effect events (errors, compensations)
  • 0xExxx: Reserved
  • 0xFxxx: Custom/extension events

Tuple Fields§

§0: u16

Implementations§

Source§

impl EventKind

Source

pub const DATA: EventKind

Source

pub const SYSTEM_INIT: EventKind

Source

pub const SYSTEM_SHUTDOWN: EventKind

Source

pub const SYSTEM_HEARTBEAT: EventKind

Source

pub const SYSTEM_CONFIG_CHANGE: EventKind

Source

pub const TRAJECTORY_CREATED: EventKind

Source

pub const TRAJECTORY_UPDATED: EventKind

Source

pub const TRAJECTORY_COMPLETED: EventKind

Source

pub const TRAJECTORY_FAILED: EventKind

Source

pub const TRAJECTORY_SUSPENDED: EventKind

Source

pub const TRAJECTORY_RESUMED: EventKind

Source

pub const TRAJECTORY_DELETED: EventKind

Source

pub const SCOPE_CREATED: EventKind

Source

pub const SCOPE_UPDATED: EventKind

Source

pub const SCOPE_CLOSED: EventKind

Source

pub const SCOPE_CHECKPOINTED: EventKind

Source

pub const SCOPE_CONTEXT_PAGED: EventKind

Context window was repaged mid-scope (sections evicted/promoted).

Source

pub const ARTIFACT_CREATED: EventKind

Source

pub const ARTIFACT_UPDATED: EventKind

Source

pub const ARTIFACT_SUPERSEDED: EventKind

Source

pub const ARTIFACT_DELETED: EventKind

Source

pub const NOTE_CREATED: EventKind

Source

pub const NOTE_UPDATED: EventKind

Source

pub const NOTE_SUPERSEDED: EventKind

Source

pub const NOTE_DELETED: EventKind

Source

pub const NOTE_ACCESSED: EventKind

Source

pub const TURN_CREATED: EventKind

Source

pub const AGENT_REGISTERED: EventKind

Source

pub const AGENT_UPDATED: EventKind

Source

pub const AGENT_UNREGISTERED: EventKind

Source

pub const AGENT_STATUS_CHANGED: EventKind

Source

pub const GOAL_CREATED: EventKind

Source

pub const GOAL_ACTIVATED: EventKind

Source

pub const GOAL_ACHIEVED: EventKind

Source

pub const GOAL_FAILED: EventKind

Source

pub const PLAN_CREATED: EventKind

Source

pub const PLAN_STARTED: EventKind

Source

pub const PLAN_COMPLETED: EventKind

Source

pub const PLAN_FAILED: EventKind

Source

pub const STEP_COMPLETED: EventKind

Source

pub const STEP_FAILED: EventKind

Source

pub const BELIEF_CREATED: EventKind

Source

pub const BELIEF_SUPERSEDED: EventKind

Source

pub const DELIBERATION_COMPLETED: EventKind

Source

pub const ENGINE_STATE_PERSISTED: EventKind

Source

pub const SYNC_PULSE_EMITTED: EventKind

SyncPulse emitted when multi-agent drift exceeds threshold.

Source

pub const SYNC_PULSE_RECONCILED: EventKind

SyncPulse reconciliation completed.

Source

pub const LOCK_ACQUIRED: EventKind

Source

pub const LOCK_EXTENDED: EventKind

Source

pub const LOCK_RELEASED: EventKind

Source

pub const LOCK_EXPIRED: EventKind

Source

pub const LOCK_CONTENTION: EventKind

Source

pub const MESSAGE_SENT: EventKind

Source

pub const MESSAGE_DELIVERED: EventKind

Source

pub const MESSAGE_ACKNOWLEDGED: EventKind

Source

pub const MESSAGE_EXPIRED: EventKind

Source

pub const DELEGATION_CREATED: EventKind

Source

pub const DELEGATION_ACCEPTED: EventKind

Source

pub const DELEGATION_REJECTED: EventKind

Source

pub const DELEGATION_STARTED: EventKind

Source

pub const DELEGATION_COMPLETED: EventKind

Source

pub const DELEGATION_FAILED: EventKind

Source

pub const HANDOFF_CREATED: EventKind

Source

pub const HANDOFF_ACCEPTED: EventKind

Source

pub const HANDOFF_REJECTED: EventKind

Source

pub const HANDOFF_COMPLETED: EventKind

Source

pub const EDGE_CREATED: EventKind

Source

pub const EDGE_UPDATED: EventKind

Source

pub const EDGE_DELETED: EventKind

Source

pub const EVOLUTION_SNAPSHOT_CREATED: EventKind

Source

pub const EVOLUTION_PHASE_CHANGED: EventKind

Source

pub const EFFECT_ERROR: EventKind

Source

pub const EFFECT_RETRY: EventKind

Source

pub const EFFECT_COMPENSATE: EventKind

Source

pub const EFFECT_ACK: EventKind

Source

pub const EFFECT_BACKPRESSURE: EventKind

Source

pub const EFFECT_CANCEL: EventKind

Source

pub const EFFECT_CONFLICT: EventKind

Source

pub const CACHE_INVALIDATE_TRAJECTORY: EventKind

Source

pub const CACHE_INVALIDATE_SCOPE: EventKind

Source

pub const CACHE_INVALIDATE_ARTIFACT: EventKind

Source

pub const CACHE_INVALIDATE_NOTE: EventKind

Source

pub const WORKING_SET_UPDATED: EventKind

Source

pub const WORKING_SET_DELETED: EventKind

Source

pub const BASH_EXECUTION_STARTED: EventKind

Source

pub const BASH_EXECUTION_COMPLETED: EventKind

Source

pub const BASH_FILE_WRITTEN: EventKind

Source

pub const BROWSER_ACTION_COMPLETED: EventKind

Source

pub const WEB_MCP_TOOL_EXECUTED: EventKind

Source

pub const WEB_MCP_DISCOVERY_SNAPSHOT: EventKind

Source

pub const REASONING_TRACE: EventKind

Source

pub const AG_UI_RUN_STARTED: EventKind

Source

pub const AG_UI_STEP_STARTED: EventKind

Source

pub const AG_UI_STEP_FINISHED: EventKind

Source

pub const AG_UI_RUN_FINISHED: EventKind

Source

pub const AG_UI_RUN_ERROR: EventKind

Source

pub const AG_UI_INTERRUPT: EventKind

Source

pub const AG_UI_STATE_SNAPSHOT: EventKind

Source

pub const AG_UI_STATE_DELTA: EventKind

Source

pub const SESSION_CREATED: EventKind

Source

pub const SESSION_ACTIVATED: EventKind

Source

pub const SESSION_DELTA: EventKind

Source

pub const SESSION_CLOSED: EventKind

Source

pub const SESSION_EXPIRED: EventKind

Source

pub const SESSION_FALLBACK: EventKind

Source

pub const INSTANCE_REGISTERED: EventKind

Source

pub const INSTANCE_HEARTBEAT: EventKind

Source

pub const INSTANCE_DEREGISTERED: EventKind

Source

pub const INSTANCE_STALE: EventKind

Source

pub const COMPONENT_PATCH: EventKind

Source

pub const COMPONENT_SNAPSHOT: EventKind

Source

pub const INVARIANT_VIOLATION: EventKind

Source

pub const PII_EGRESS_BLOCKED: EventKind

Source

pub const PII_REDACTION_APPLIED: EventKind

Source

pub const PII_VAULT_WRITE_FAILED: EventKind

Source

pub const fn category(&self) -> u8

Get the category (upper 4 bits).

Source

pub const fn type_id(&self) -> u16

Get the type within the category (lower 12 bits).

Source

pub const fn custom(category: u8, type_id: u16) -> EventKind

Create a custom event kind.

Source

pub const fn is_system(&self) -> bool

Check if this is a system event.

Source

pub const fn is_effect(&self) -> bool

Check if this is an effect event.

Source

pub fn is_defined(&self) -> bool

Check if this event kind matches a known constant.

Returns false for undefined kinds (e.g. 0x0FFF). This prevents accidental use of unregistered event types in production.

Trait Implementations§

Source§

impl Clone for EventKind

Source§

fn clone(&self) -> EventKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventKind

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<EventKind, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for EventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Hash for EventKind

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for EventKind

Source§

fn eq(&self, other: &EventKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EventKind

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToSchema for EventKind

Source§

fn name() -> Cow<'static, str>

Return name of the schema. Read more
Source§

fn schemas(schemas: &mut Vec<(String, RefOr<Schema>)>)

Implement reference [utoipa::openapi::schema::Schema]s for this type. Read more
Source§

impl Copy for EventKind

Source§

impl Eq for EventKind

Source§

impl StructuralPartialEq for EventKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PartialSchema for T
where T: ComposeSchema + ?Sized,

§

fn schema() -> RefOr<Schema>

Return ref or schema of implementing type that can then be used to construct combined schemas.
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<T> ToStringFallible for T
where T: Display,

§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,