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§
Required Methods§
sourcefn start<'a>(
module_interfaces: (ModuleInterface<InputMessage, OutputMessage>, Self::ModulePrivateInterface),
delegation_module_interface: ModuleInterface,
options: Self::Options,
) -> Result<BoxFuture<'a, ()>>
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.