Trait io_plugin::IoPlugin

source ·
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§

source

fn init( message: MessageType, plugin_file: PathBuf ) -> Box<dyn Future<Output = Result<Self, PluginError>>>
where Self: Sized,

source

fn message( message: MessageType ) -> Box<dyn Future<Output = Result<ResponseType, PluginError>>>

Object Safety§

This trait is not object safe.

Implementors§