MCPcopy Create free account
hub / github.com/cowprotocol/services / configure_solution

Method configure_solution

crates/e2e/src/setup/solver/mock.rs:50–54  ·  view source on GitHub ↗

Instructs the solver to return a new solution from now on.

(&self, solution: Option<Solution>)

Source from the content-addressed store, hash-verified

48
49 /// Instructs the solver to return a new solution from now on.
50 pub fn configure_solution(&self, solution: Option<Solution>) {
51 self.configure_response(SolverResponse::Solutions {
52 solutions: solution.into_iter().collect(),
53 });
54 }
55
56 /// Instructs the solver to return a new solution from now on.
57 pub fn configure_solution_async(&self, solution: SolutionFuture) {

Calls 3

configure_responseMethod · 0.80
collectMethod · 0.80
into_iterMethod · 0.45