Function pact_mock_server::lookup_mock_server_by_port
[−]
[src]
pub fn lookup_mock_server_by_port<R>(mock_server_port: i32, f: &Fn(&MockServer) -> R) -> Option<R>
Looks up the mock server by port number, and passes it into the given closure. The result of the
closure is returned wrapped in an Option
. If no mock server is found with that port number, None
is returned.