()
| 293 | /// |
| 294 | /// Call this function after the system detects a VMClock disruption event. |
| 295 | /// |
| 296 | /// It will go through and clear the state (like startup). |
| 297 | pub fn handle_disruption(&mut self) { |
| 298 | // Use the destructure pattern to get a mutable reference to each item. |
| 299 | // |
| 300 | // This makes it a compilation error if we add a new field this Self without handling it here |
| 301 | let Self { |
| 302 | clock_adjuster, |
| 303 | state_writer: clock_state_writer, |
| 304 | clock_params_receiver, |
| 305 | clock_disruption_receiver, |
| 306 | sync_parameters, |
| 307 | clock_status, |
no test coverage detected