Trait PluginEventDispatcher
pub trait PluginEventDispatcher: Send + Sync {
// Required method
fn dispatch<'life0, 'async_trait>(
&'life0 self,
route: ResolvedPluginEventRoute,
event: PluginEventEnvelope,
) -> Pin<Box<dyn Future<Output = Result<(), PluginEventError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Shared runtime boundary that performs the already-resolved agent/SOP work.
Implementations must enter the existing shared channel turn and SOP event paths. They must not copy either lifecycle into a plugin-specific adapter.
Required Methods§
Sourcefn dispatch<'life0, 'async_trait>(
&'life0 self,
route: ResolvedPluginEventRoute,
event: PluginEventEnvelope,
) -> Pin<Box<dyn Future<Output = Result<(), PluginEventError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn dispatch<'life0, 'async_trait>(
&'life0 self,
route: ResolvedPluginEventRoute,
event: PluginEventEnvelope,
) -> Pin<Box<dyn Future<Output = Result<(), PluginEventError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dispatch one authorized event according to its typed resolved route.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".