[][src]Trait pact_verifier::callback_executors::ProviderStateExecutor

pub trait ProviderStateExecutor {
#[must_use]    fn call<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        interaction_id: Option<String>,
        provider_state: &'life1 ProviderState,
        setup: bool,
        client: Option<&'life2 Client>
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, ProviderStateError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Trait for executors that call provider state callbacks

Required methods

#[must_use]fn call<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    interaction_id: Option<String>,
    provider_state: &'life1 ProviderState,
    setup: bool,
    client: Option<&'life2 Client>
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, ProviderStateError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Invoke the callback for the given provider state, returning an optional Map of values

Loading content...

Implementors

impl ProviderStateExecutor for HttpRequestProviderStateExecutor[src]

Loading content...