(&self)
| 240 | |
| 241 | impl SystemState { |
| 242 | pub fn get(&self) -> &SystemInfo { |
| 243 | match &self { |
| 244 | SystemState::Uninitialized => trap("canister not initialized"), |
| 245 | SystemState::Initialized(info) => info, |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | pub fn is_initialized(&self) -> bool { |
| 250 | matches!(self, SystemState::Initialized(_)) |