Set the status of the operation and write the progress # Arguments `status` - The status of the operation
(&mut self, activity: &str)
| 172 | /// * `status` - The status of the operation |
| 173 | /// |
| 174 | pub fn write_activity(&mut self, activity: &str) { |
| 175 | match self.format { |
| 176 | ProgressFormat::Json => { |
| 177 | self.progress_value.activity = Some(activity.to_string()); |
| 178 | self.write_json(); |
| 179 | }, |
| 180 | ProgressFormat::Default => { |
| 181 | self.console_bar.pb_set_message(activity); |
| 182 | }, |
| 183 | ProgressFormat::None => {} |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | /// Set the number of total items to complete |
| 188 | /// |
no test coverage detected