pub fn start_mock_server_with_addr(&mut self, id: String, pact: Pact, addr: std::net::SocketAddr) -> Result<std::net::SocketAddr, String> {
        let (mock_server, future) = MockServer::new(id.clone(), pact, addr)?;
        self.runtime.spawn(future);
        let addr = mock_server.addr;

        self.mock_servers.insert(id, Box::new(mock_server));
        Ok(addr)
    }
/// Start a new server on the runtime
Start a new server on the runtime
Start a new server on the runtime
pub fn start_mock_server_with_addr(&mut self, id: String, pact: Pact, addr: std::net::SocketAddr) -> Result<std::net::SocketAddr, String> {
        let (mock_server, future) = MockServer::new(id.clone(), pact, addr)?;
        self.runtime.spawn(future);
        let addr = mock_server.addr;
        self.mock_servers.insert(id, Box::new(mock_server));
        Ok(addr)
    }
pub fn start_mock_server_with_addr ( & mut self , id : String , pact : Pact , addr : std :: net :: SocketAddr ) -> Result < std :: net :: SocketAddr , String > { let ( mock_server , future ) = MockServer :: new ( id . clone ( ) , pact , addr ) ? ; self . runtime . spawn ( future ) ; let addr = mock_server . addr ; self . mock_servers . insert ( id , Box :: new ( mock_server ) ) ; Ok ( addr ) }
Start a new server on the runtime
Start a new server on the runtime
&mut self
id
String
pact
Pact
addr
std::net::SocketAddr
&mut self
id
String
pact
Pact
addr
std::net::SocketAddr