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: Self

Source

pub const SYSTEM_INIT: Self

Source

pub const SYSTEM_SHUTDOWN: Self

Source

pub const SYSTEM_HEARTBEAT: Self

Source

pub const SYSTEM_CONFIG_CHANGE: Self

Source

pub const TRAJECTORY_CREATED: Self

Source

pub const TRAJECTORY_UPDATED: Self

Source

pub const TRAJECTORY_COMPLETED: Self

Source

pub const TRAJECTORY_FAILED: Self

Source

pub const TRAJECTORY_SUSPENDED: Self

Source

pub const TRAJECTORY_RESUMED: Self

Source

pub const TRAJECTORY_DELETED: Self

Source

pub const SCOPE_CREATED: Self

Source

pub const SCOPE_UPDATED: Self

Source

pub const SCOPE_CLOSED: Self

Source

pub const SCOPE_CHECKPOINTED: Self

Source

pub const SCOPE_CONTEXT_PAGED: Self

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

Source

pub const ARTIFACT_CREATED: Self

Source

pub const ARTIFACT_UPDATED: Self

Source

pub const ARTIFACT_SUPERSEDED: Self

Source

pub const ARTIFACT_DELETED: Self

Source

pub const NOTE_CREATED: Self

Source

pub const NOTE_UPDATED: Self

Source

pub const NOTE_SUPERSEDED: Self

Source

pub const NOTE_DELETED: Self

Source

pub const NOTE_ACCESSED: Self

Source

pub const TURN_CREATED: Self

Source

pub const AGENT_REGISTERED: Self

Source

pub const AGENT_UPDATED: Self

Source

pub const AGENT_UNREGISTERED: Self

Source

pub const AGENT_STATUS_CHANGED: Self

Source

pub const GOAL_CREATED: Self

Source

pub const GOAL_ACTIVATED: Self

Source

pub const GOAL_ACHIEVED: Self

Source

pub const GOAL_FAILED: Self

Source

pub const PLAN_CREATED: Self

Source

pub const PLAN_STARTED: Self

Source

pub const PLAN_COMPLETED: Self

Source

pub const PLAN_FAILED: Self

Source

pub const STEP_COMPLETED: Self

Source

pub const STEP_FAILED: Self

Source

pub const BELIEF_CREATED: Self

Source

pub const BELIEF_SUPERSEDED: Self

Source

pub const DELIBERATION_COMPLETED: Self

Source

pub const ENGINE_STATE_PERSISTED: Self

Source

pub const SYNC_PULSE_EMITTED: Self

SyncPulse emitted when multi-agent drift exceeds threshold.

Source

pub const SYNC_PULSE_RECONCILED: Self

SyncPulse reconciliation completed.

Source

pub const LOCK_ACQUIRED: Self

Source

pub const LOCK_EXTENDED: Self

Source

pub const LOCK_RELEASED: Self

Source

pub const LOCK_EXPIRED: Self

Source

pub const LOCK_CONTENTION: Self

Source

pub const MESSAGE_SENT: Self

Source

pub const MESSAGE_DELIVERED: Self

Source

pub const MESSAGE_ACKNOWLEDGED: Self

Source

pub const MESSAGE_EXPIRED: Self

Source

pub const DELEGATION_CREATED: Self

Source

pub const DELEGATION_ACCEPTED: Self

Source

pub const DELEGATION_REJECTED: Self

Source

pub const DELEGATION_STARTED: Self

Source

pub const DELEGATION_COMPLETED: Self

Source

pub const DELEGATION_FAILED: Self

Source

pub const HANDOFF_CREATED: Self

Source

pub const HANDOFF_ACCEPTED: Self

Source

pub const HANDOFF_REJECTED: Self

Source

pub const HANDOFF_COMPLETED: Self

Source

pub const EDGE_CREATED: Self

Source

pub const EDGE_UPDATED: Self

Source

pub const EDGE_DELETED: Self

Source

pub const EVOLUTION_SNAPSHOT_CREATED: Self

Source

pub const EVOLUTION_PHASE_CHANGED: Self

Source

pub const EFFECT_ERROR: Self

Source

pub const EFFECT_RETRY: Self

Source

pub const EFFECT_COMPENSATE: Self

Source

pub const EFFECT_ACK: Self

Source

pub const EFFECT_BACKPRESSURE: Self

Source

pub const EFFECT_CANCEL: Self

Source

pub const EFFECT_CONFLICT: Self

Source

pub const CACHE_INVALIDATE_TRAJECTORY: Self

Source

pub const CACHE_INVALIDATE_SCOPE: Self

Source

pub const CACHE_INVALIDATE_ARTIFACT: Self

Source

pub const CACHE_INVALIDATE_NOTE: Self

Source

pub const WORKING_SET_UPDATED: Self

Source

pub const WORKING_SET_DELETED: Self

Source

pub const BASH_EXECUTION_STARTED: Self

Source

pub const BASH_EXECUTION_COMPLETED: Self

Source

pub const BASH_FILE_WRITTEN: Self

Source

pub const BROWSER_ACTION_COMPLETED: Self

Source

pub const WEB_MCP_TOOL_EXECUTED: Self

Source

pub const WEB_MCP_DISCOVERY_SNAPSHOT: Self

Source

pub const REASONING_TRACE: Self

Source

pub const AG_UI_RUN_STARTED: Self

Source

pub const AG_UI_STEP_STARTED: Self

Source

pub const AG_UI_STEP_FINISHED: Self

Source

pub const AG_UI_RUN_FINISHED: Self

Source

pub const AG_UI_RUN_ERROR: Self

Source

pub const AG_UI_INTERRUPT: Self

Source

pub const AG_UI_STATE_SNAPSHOT: Self

Source

pub const AG_UI_STATE_DELTA: Self

Source

pub const SESSION_CREATED: Self

Source

pub const SESSION_ACTIVATED: Self

Source

pub const SESSION_DELTA: Self

Source

pub const SESSION_CLOSED: Self

Source

pub const SESSION_EXPIRED: Self

Source

pub const SESSION_FALLBACK: Self

Source

pub const INSTANCE_REGISTERED: Self

Source

pub const INSTANCE_HEARTBEAT: Self

Source

pub const INSTANCE_DEREGISTERED: Self

Source

pub const INSTANCE_STALE: Self

Source

pub const COMPONENT_PATCH: Self

Source

pub const COMPONENT_SNAPSHOT: Self

Source

pub const INVARIANT_VIOLATION: Self

Source

pub const PII_EGRESS_BLOCKED: Self

Source

pub const PII_REDACTION_APPLIED: Self

Source

pub const PII_VAULT_WRITE_FAILED: Self

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) -> Self

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 ComposeSchema for EventKind

Source§

fn compose(generics: Vec<RefOr<Schema>>) -> RefOr<Schema>

Source§

impl Debug for EventKind

Source§

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

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

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

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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

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

impl Hash for EventKind

Source§

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

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::Ok, __S::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.

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.
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
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.
Source§

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