pub trait Module: Module<InputMessage = InputMessage, OutputMessage = OutputMessage> + Sized {
type Options;
// Required method
fn start(
agent_data: AgentData,
module_interfaces: (ModuleInterface<InputMessage, OutputMessage>, Self::ModulePrivateInterface),
options: Self::Options,
) -> impl Future<Output = ()> + Send + 'static;
}Expand description
Trait to define the interface to execution module
Required Associated Types§
Required Methods§
sourcefn start(
agent_data: AgentData,
module_interfaces: (ModuleInterface<InputMessage, OutputMessage>, Self::ModulePrivateInterface),
options: Self::Options,
) -> impl Future<Output = ()> + Send + 'static
fn start( agent_data: AgentData, module_interfaces: (ModuleInterface<InputMessage, OutputMessage>, Self::ModulePrivateInterface), options: Self::Options, ) -> impl Future<Output = ()> + Send + 'static
Start an execution module
Object Safety§
This trait is not object safe.