Trait pact_plugin_driver::plugin_models::PactPluginRpc  [−][src]
pub trait PactPluginRpc {
    fn init_plugin<'life0, 'async_trait>(
        &'life0 self, 
        request: InitPluginRequest
    ) -> Pin<Box<dyn Future<Output = Result<InitPluginResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait;
    fn compare_contents<'life0, 'async_trait>(
        &'life0 self, 
        request: CompareContentsRequest
    ) -> Pin<Box<dyn Future<Output = Result<CompareContentsResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait;
    fn configure_interaction<'life0, 'async_trait>(
        &'life0 self, 
        request: ConfigureInteractionRequest
    ) -> Pin<Box<dyn Future<Output = Result<ConfigureInteractionResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait;
    fn generate_content<'life0, 'async_trait>(
        &'life0 self, 
        request: GenerateContentRequest
    ) -> Pin<Box<dyn Future<Output = Result<GenerateContentResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait;
}Expand description
Trait with remote-calling methods for a running plugin
Required methods
fn init_plugin<'life0, 'async_trait>(
    &'life0 self, 
    request: InitPluginRequest
) -> Pin<Box<dyn Future<Output = Result<InitPluginResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
fn init_plugin<'life0, 'async_trait>(
    &'life0 self, 
    request: InitPluginRequest
) -> Pin<Box<dyn Future<Output = Result<InitPluginResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
Send an init request to the plugin process
fn compare_contents<'life0, 'async_trait>(
    &'life0 self, 
    request: CompareContentsRequest
) -> Pin<Box<dyn Future<Output = Result<CompareContentsResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
fn compare_contents<'life0, 'async_trait>(
    &'life0 self, 
    request: CompareContentsRequest
) -> Pin<Box<dyn Future<Output = Result<CompareContentsResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
Send a compare contents request to the plugin process
fn configure_interaction<'life0, 'async_trait>(
    &'life0 self, 
    request: ConfigureInteractionRequest
) -> Pin<Box<dyn Future<Output = Result<ConfigureInteractionResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
fn configure_interaction<'life0, 'async_trait>(
    &'life0 self, 
    request: ConfigureInteractionRequest
) -> Pin<Box<dyn Future<Output = Result<ConfigureInteractionResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
Send a configure contents request to the plugin process
fn generate_content<'life0, 'async_trait>(
    &'life0 self, 
    request: GenerateContentRequest
) -> Pin<Box<dyn Future<Output = Result<GenerateContentResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
fn generate_content<'life0, 'async_trait>(
    &'life0 self, 
    request: GenerateContentRequest
) -> Pin<Box<dyn Future<Output = Result<GenerateContentResponse>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
Send a generate content request to the plugin
