Method
pause_maintenance
(self: &Arc<Self>, maintenance_id: i32)
Source from the content-addressed store, hash-verified
| 1054 | } |
| 1055 | |
| 1056 | pub async fn pause_maintenance(self: &Arc<Self>, maintenance_id: i32) -> Result<()> { |
| 1057 | let _: bool = self |
| 1058 | .call( |
| 1059 | "pauseMaintenance", |
| 1060 | vec![serde_json::to_value(maintenance_id).unwrap()], |
| 1061 | "/ok", |
| 1062 | true, |
| 1063 | ) |
| 1064 | .await?; |
| 1065 | |
| 1066 | Ok(()) |
| 1067 | } |
| 1068 | |
| 1069 | pub async fn resume_maintenance(self: &Arc<Self>, maintenance_id: i32) -> Result<()> { |
| 1070 | let _: bool = self |
Tested by
no test coverage detected