pub trait PactPluginRpc {
// Required method
fn init_plugin<'life0, 'async_trait>(
&'life0 mut self,
request: PluginInitRequest,
) -> Pin<Box<dyn Future<Output = Result<PluginInitResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for the plugin init handshake only (used by anything that can handle the init message)
Required Methods§
Sourcefn init_plugin<'life0, 'async_trait>(
&'life0 mut self,
request: PluginInitRequest,
) -> Pin<Box<dyn Future<Output = Result<PluginInitResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init_plugin<'life0, 'async_trait>(
&'life0 mut self,
request: PluginInitRequest,
) -> Pin<Box<dyn Future<Output = Result<PluginInitResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send an init request to the plugin process
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".