(&self)
| 146 | } |
| 147 | |
| 148 | const fn task_priority(&self) -> u8 { |
| 149 | match self { |
| 150 | Self::Seal(_) => 4, |
| 151 | Self::Insert(_) => 3, |
| 152 | Self::Consolidate(_) => 2, |
| 153 | Self::Finalize(_) => 1, |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | impl<EngineClient_: EngineClient> PartialEq for EngineTask<EngineClient_> { |