Module

Trait Module 

Source
pub trait Module {
    // Required method
    fn start(
        agent_data: AgentData,
        input_receiver: Receiver<InputMessage>,
    ) -> impl Future<Output = ()> + Send + 'static;
}
Expand description

Trait for monitor module

Required Methods§

Source

fn start( agent_data: AgentData, input_receiver: Receiver<InputMessage>, ) -> impl Future<Output = ()> + Send + 'static

Start a new monitor for the agent

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§