Struct pact_plugin_driver::proto::pact_plugin_client::PactPluginClient   [−][src]
pub struct PactPluginClient<T> { /* fields omitted */ }Implementations
impl<T> PactPluginClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as Body>::Error: Into<StdError> + Send, 
impl<T> PactPluginClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as Body>::Error: Into<StdError> + Send, 
pub fn with_interceptor<F>(
    inner: T, 
    interceptor: F
) -> PactPluginClient<InterceptedService<T, F>> where
    F: Interceptor,
    T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
    <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync, 
Compress requests with gzip.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip.
pub async fn init_plugin(
    &mut self, 
    request: impl IntoRequest<InitPluginRequest>
) -> Result<Response<InitPluginResponse>, Status>
pub async fn init_plugin(
    &mut self, 
    request: impl IntoRequest<InitPluginRequest>
) -> Result<Response<InitPluginResponse>, Status>
Check that the plugin loaded OK. Returns the catalogue entries describing what the plugin provides
pub async fn update_catalogue(
    &mut self, 
    request: impl IntoRequest<Catalogue>
) -> Result<Response<()>, Status>
pub async fn update_catalogue(
    &mut self, 
    request: impl IntoRequest<Catalogue>
) -> Result<Response<()>, Status>
Updated catalogue. This will be sent when the core catalogue has been updated (probably by a plugin loading).
pub async fn compare_contents(
    &mut self, 
    request: impl IntoRequest<CompareContentsRequest>
) -> Result<Response<CompareContentsResponse>, Status>
pub async fn compare_contents(
    &mut self, 
    request: impl IntoRequest<CompareContentsRequest>
) -> Result<Response<CompareContentsResponse>, Status>
Request to perform a comparison of some contents (matching request)
pub async fn configure_interaction(
    &mut self, 
    request: impl IntoRequest<ConfigureInteractionRequest>
) -> Result<Response<ConfigureInteractionResponse>, Status>
pub async fn configure_interaction(
    &mut self, 
    request: impl IntoRequest<ConfigureInteractionRequest>
) -> Result<Response<ConfigureInteractionResponse>, Status>
Request to configure/setup the interaction for later verification. Data returned will be persisted in the pact file.
pub async fn generate_content(
    &mut self, 
    request: impl IntoRequest<GenerateContentRequest>
) -> Result<Response<GenerateContentResponse>, Status>
pub async fn generate_content(
    &mut self, 
    request: impl IntoRequest<GenerateContentRequest>
) -> Result<Response<GenerateContentResponse>, Status>
Request to generate the content using any defined generators
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for PactPluginClient<T> where
    T: RefUnwindSafe, 
impl<T> Send for PactPluginClient<T> where
    T: Send, 
impl<T> Sync for PactPluginClient<T> where
    T: Sync, 
impl<T> Unpin for PactPluginClient<T> where
    T: Unpin, 
impl<T> UnwindSafe for PactPluginClient<T> where
    T: UnwindSafe, 
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
