Trait pact_consumer::mock_server::StartMockServer
source · pub trait StartMockServer {
// Required method
fn start_mock_server(
&self,
catalog_entry: Option<&str>,
) -> Box<dyn ValidatingMockServer>;
}
Expand description
This trait is implemented by types which allow us to start a mock server.
Required Methods§
sourcefn start_mock_server(
&self,
catalog_entry: Option<&str>,
) -> Box<dyn ValidatingMockServer>
fn start_mock_server( &self, catalog_entry: Option<&str>, ) -> Box<dyn ValidatingMockServer>
Start a mock server running in a background thread. If the catalog entry is omitted, then a standard HTTP mock server will be started.