pub trait StartMockServer {
    fn start_mock_server(
        &self,
        catalog_entry: Option<&str>
    ) -> Box<dyn ValidatingMockServer>; fn start_mock_server_async<'life0, 'life1, 'async_trait>(
        &'life0 self,
        catalog_entry: Option<&'life1 str>
    ) -> Pin<Box<dyn Future<Output = Box<dyn ValidatingMockServer>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

This trait is implemented by types which allow us to start a mock server.

Required Methods

Start a mock server running in a background thread. If the catalog entry is omitted, then a standard HTTP mock server will be started.

Start a mock server running in a task (requires a Tokio runtime to be already setup)

Implementations on Foreign Types

Implementors