Skip to main content

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".

Implementors§