EMU6DY2V5RALGMX5PJP6V7RXMHSNWJP4U6R74Q7UJ3IUHJRNKQJAC
X63S7U6ERGVYUJF7BLVRGHGHDLNJ7KFRUNXI2DB4PDUB5ZMCU25QC
AH2SBQVIRKCRNKLMJ4CWGNHVCX4JUZ6MXYK274LBDMZFO7NY6O4AC
GMDVCCTQR3HD6RRYOEAIB5IO2IE5OOCXYAVZT3FL7CNRZLRSXORQC
3CSGDKWGFCSMIDGXBJS6PJM6XLISTSOCTASYWWCOI5UI36VS4OEQC
IVJRMWJO6MEVIPXCXY4OTDWX5TPD57OW7TW4W6T6E5KK4WM5L5OAC
/// Computation time exceeded (Code 599) #[error("The computation time was exceeded")] TimeExceeded,
/// Computation time exceeded (Code 599)
#[error("The computation time was exceeded")]
TimeExceeded,
SolveError::TimeExceeded => { let status = Status::new(599, "Max solve time exceeded"); response.set_status(status); response.set_sized_body(Cursor::new("Max solve time exceeded")); }
SolveError::TimeExceeded => {
let status = Status::new(599, "Max solve time exceeded");
response.set_status(status);
response.set_sized_body(Cursor::new("Max solve time exceeded"));
}
const MAX_SOLVE_TIME: f64 = 1.000;
if ! handle.wait(MAX_SOLVE_TIME) { // Solve time exceeded! handle.close()?; return Err(SolveError::TimeExceeded); }
if ! handle.wait(MAX_SOLVE_TIME) {
// Solve time exceeded!
handle.close()?;
return Err(SolveError::TimeExceeded);