pub trait IoPlugin<MessageType: Serialize + for<'a> Deserialize<'a>, ResponseType: Serialize + for<'a> Deserialize<'a>> {
// Required methods
fn init(
message: MessageType,
plugin_file: PathBuf
) -> Box<dyn Future<Output = Result<Self, PluginError>>>
where Self: Sized;
fn message(
message: MessageType
) -> Box<dyn Future<Output = Result<ResponseType, PluginError>>>;
}Required Methods§
fn init(
message: MessageType,
plugin_file: PathBuf
) -> Box<dyn Future<Output = Result<Self, PluginError>>>where
Self: Sized,
fn message( message: MessageType ) -> Box<dyn Future<Output = Result<ResponseType, PluginError>>>
Object Safety§
This trait is not object safe.