Trait agent_tk::delegation::transport::Module

source ·
pub trait Module: Module<InputMessage = InputMessage, OutputMessage = OutputMessage> + Sized {
    type Options;

    // Required method
    fn start<'a>(
        module_interfaces: (ModuleInterface<InputMessage, OutputMessage>, Self::ModulePrivateInterface),
        delegation_module_interface: ModuleInterface,
        options: Self::Options,
    ) -> Result<BoxFuture<'a, ()>>;
}
Expand description

Trait to define the interface to transport module

Required Associated Types§

source

type Options

Options for the creation of the transport module

Required Methods§

source

fn start<'a>( module_interfaces: (ModuleInterface<InputMessage, OutputMessage>, Self::ModulePrivateInterface), delegation_module_interface: ModuleInterface, options: Self::Options, ) -> Result<BoxFuture<'a, ()>>

Start a new transport module

Object Safety§

This trait is not object safe.

Implementors§