pub fn execute(&self) -> i32 {
    for s in &self.sources {
      debug!("Pact source to verify = {}", s);
    };

    let (calling_app_name, calling_app_version) = self.calling_app.clone().unwrap_or_else(|| {
      ("pact_ffi".to_string(), env!("CARGO_PKG_VERSION").to_string())
    });
    let runtime = tokio::runtime::Runtime::new().unwrap();
    runtime.block_on(async {
      verify_provider_async(
        self.provider.clone(),
        self.sources.clone(),
        self.filter.clone(),
        self.consumers.clone(),
        self.options.clone(),
        &self.state_change.clone(),
        Some(VerificationMetrics {
          test_framework: "pact_ffi".to_string(),
          app_name: calling_app_name.clone(),
          app_version: calling_app_version.clone()
        })
      ).await
    })
      .map(|result| if result { 0 } else { 2 })
      .unwrap_or(2)
  }
/// Execute the verifier
///
/// This will return an integer value based on the status of the verification:
/// * 0 - verification was successful
/// * 1 - verification was not successful
/// * 2 - failed to run the verification
Execute the verifier
This will return an integer value based on the status of the verification:
0 - verification was successful
1 - verification was not successful
2 - failed to run the verification
Execute the verifier This will return an integer value based on the status of the verification : 0 - verification was successful 1 - verification was not successful 2 - failed to run the verification
pub fn execute(&self) -> i32 {
    for s in &self.sources {
      debug!("Pact source to verify = {}", s);
    };
    let (calling_app_name, calling_app_version) = self.calling_app.clone().unwrap_or_else(|| {
      ("pact_ffi".to_string(), env!("CARGO_PKG_VERSION").to_string())
    });
    let runtime = tokio::runtime::Runtime::new().unwrap();
    runtime.block_on(async {
      verify_provider_async(
        self.provider.clone(),
        self.sources.clone(),
        self.filter.clone(),
        self.consumers.clone(),
        self.options.clone(),
        &self.state_change.clone(),
        Some(VerificationMetrics {
          test_framework: "pact_ffi".to_string(),
          app_name: calling_app_name.clone(),
          app_version: calling_app_version.clone()
        })
      ).await
    })
      .map(|result| if result { 0 } else { 2 })
      .unwrap_or(2)
  }
pub fn execute ( & self ) -> i32 { for s in & self . sources { debug ! ( " " s ) ; } ; let ( calling_app_name , calling_app_version ) = self . calling_app . clone ( ) . unwrap_or_else ( | | { ( " " . to_string ( ) , env ! ( " " ) . to_string ( ) ) } ) ; let runtime = tokio :: runtime :: Runtime :: new ( ) . unwrap ( ) ; runtime . block_on ( async { verify_provider_async ( self . provider . clone ( ) , self . sources . clone ( ) , self . filter . clone ( ) , self . consumers . clone ( ) , self . options . clone ( ) , & self . state_change . clone ( ) , Some ( VerificationMetrics { test_framework : " " . to_string ( ) , app_name : calling_app_name . clone ( ) , app_version : calling_app_version . clone ( ) } ) ) . await } ) . map ( | result | if result { 0 } else { 2 } ) . unwrap_or ( 2 ) }
Execute the verifier
This will return an integer value based on the status of the verification:
 0 - verification was successful
 1 - verification was not successful
 2 - failed to run the verification
Execute the verifier This will return an integer value based on the status of the verification : 0 - verification was successful 1 - verification was not successful 2 - failed to run the verification
&self
&self