pub trait ModulePrivateInterface<InputMessage, OutputMessage> {
// Required method
fn new(
input_receiver: InactiveReceiver<InputMessage>,
output_sender: Sender<OutputMessage>,
) -> Self;
}
Expand description
Private interface for modules. Created outside of the module, but passed in constructor.
Required Methods§
Sourcefn new(
input_receiver: InactiveReceiver<InputMessage>,
output_sender: Sender<OutputMessage>,
) -> Self
fn new( input_receiver: InactiveReceiver<InputMessage>, output_sender: Sender<OutputMessage>, ) -> Self
Create a new private interface
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.