(self)
| 93 | |
| 94 | impl Mode { |
| 95 | fn name(self) -> &'static str { |
| 96 | match self { |
| 97 | Mode::Simulation => "simulation", |
| 98 | Mode::Walltime { .. } => "walltime", |
| 99 | Mode::Memory => "memory", |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | /// Sets the mode up once, then holds what its runs can't share. |
| 104 | fn acquire(self) -> ModeGuard { |