Skip to main content

PerIdEvent

Trait PerIdEvent 

Source
pub trait PerIdEvent {
    type Payload: Serialize + TS + 'static;

    const PREFIX: &'static str;
}
Expand description

A broker event sent under a name per id: its prefix, then the id.

Required Associated Constants§

Source

const PREFIX: &'static str

The wire name before the id (agent:memory:changed:).

Required Associated Types§

Source

type Payload: Serialize + TS + 'static

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl PerIdEvent for AgentCredentialsRevoked

Source§

const PREFIX: &'static str = "agentcredentials:revoked:"

Source§

type Payload = CredentialsRevokedEvent

Source§

impl PerIdEvent for AgentEventStream

Source§

const PREFIX: &'static str = "agent_event:"

Source§

type Payload = AgentEvent

Source§

impl PerIdEvent for AgentIdentitiesChanged

Source§

const PREFIX: &'static str = "agentidentities:changed:"

Source§

type Payload = ()

Source§

impl PerIdEvent for AgentInstancesChanged

Source§

const PREFIX: &'static str = "agentinstances:changed:"

Source§

type Payload = ()

Source§

impl PerIdEvent for AgentMemoryChanged

Source§

const PREFIX: &'static str = "agent:memory:changed:"

Source§

type Payload = ()

Source§

impl PerIdEvent for DroneRun

Source§

const PREFIX: &'static str = "dronerun:"

Source§

type Payload = RunEvent