Struct pact_plugin_driver::plugin_models::PactPlugin
source · [−]pub struct PactPlugin {
pub manifest: PactPluginManifest,
pub child: Arc<ChildPluginProcess>,
/* private fields */
}Expand description
Running plugin details
Fields
manifest: PactPluginManifestManifest for this plugin
child: Arc<ChildPluginProcess>Running child process
Implementations
sourceimpl PactPlugin
impl PactPlugin
sourcepub fn new(manifest: &PactPluginManifest, child: ChildPluginProcess) -> Self
pub fn new(manifest: &PactPluginManifest, child: ChildPluginProcess) -> Self
Create a new Plugin
sourcepub fn update_access(&mut self)
pub fn update_access(&mut self)
Update the access of the plugin
sourcepub fn drop_access(&mut self) -> usize
pub fn drop_access(&mut self) -> usize
Decrement and return the access count for the plugin
Trait Implementations
sourceimpl Clone for PactPlugin
impl Clone for PactPlugin
sourcefn clone(&self) -> PactPlugin
fn clone(&self) -> PactPlugin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PactPlugin
impl Debug for PactPlugin
sourceimpl PactPluginRpc for PactPlugin
impl PactPluginRpc for PactPlugin
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn start_mock_server<'life0, 'async_trait>(
&'life0 self,
request: StartMockServerRequest
) -> Pin<Box<dyn Future<Output = Result<StartMockServerResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_mock_server<'life0, 'async_trait>(
&'life0 self,
request: StartMockServerRequest
) -> Pin<Box<dyn Future<Output = Result<StartMockServerResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Start a mock server
sourcefn shutdown_mock_server<'life0, 'async_trait>(
&'life0 self,
request: ShutdownMockServerRequest
) -> Pin<Box<dyn Future<Output = Result<ShutdownMockServerResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn shutdown_mock_server<'life0, 'async_trait>(
&'life0 self,
request: ShutdownMockServerRequest
) -> Pin<Box<dyn Future<Output = Result<ShutdownMockServerResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Shutdown a running mock server
sourcefn prepare_interaction_for_verification<'life0, 'async_trait>(
&'life0 self,
request: VerificationPreparationRequest
) -> Pin<Box<dyn Future<Output = Result<VerificationPreparationResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn prepare_interaction_for_verification<'life0, 'async_trait>(
&'life0 self,
request: VerificationPreparationRequest
) -> Pin<Box<dyn Future<Output = Result<VerificationPreparationResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Prepare an interaction for verification. This should return any data required to construct any request so that it can be amended before the verification is run. Read more
sourcefn verify_interaction<'life0, 'async_trait>(
&'life0 self,
request: VerifyInteractionRequest
) -> Pin<Box<dyn Future<Output = Result<VerifyInteractionResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn verify_interaction<'life0, 'async_trait>(
&'life0 self,
request: VerifyInteractionRequest
) -> Pin<Box<dyn Future<Output = Result<VerifyInteractionResponse>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Execute the verification for the interaction.
Auto Trait Implementations
impl RefUnwindSafe for PactPlugin
impl Send for PactPlugin
impl Sync for PactPlugin
impl Unpin for PactPlugin
impl UnwindSafe for PactPlugin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more