Skip to main content

LocalAgentHandler

Trait LocalAgentHandler 

Source
pub trait LocalAgentHandler {
    // Required method
    async fn handle(
        &self,
        message: &AgentMessage,
        ctx: &AgentCtx<'_>,
    ) -> Result<(), LaserError>;
}
Expand description

What you implement: one async handle per message. (AgentHandler is the Send variant the runtime drives.)

Required Methods§

Source

async fn handle( &self, message: &AgentMessage, ctx: &AgentCtx<'_>, ) -> Result<(), LaserError>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<TraitVariantBlanketType: AgentHandler> LocalAgentHandler for TraitVariantBlanketType