A Pausable component can be paused and resumed.
| 99 | |
| 100 | /// A Pausable component can be paused and resumed. |
| 101 | pub trait Pausable { |
| 102 | /// Pause the component. |
| 103 | fn pause(&mut self) -> std::result::Result<(), MigratableError> { |
| 104 | Ok(()) |
| 105 | } |
| 106 | |
| 107 | /// Resume the component. |
| 108 | fn resume(&mut self) -> std::result::Result<(), MigratableError> { |
| 109 | Ok(()) |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /// A Snapshottable component snapshot section. |
| 114 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected