(&self, part: serde_json::Value)
| 540 | } |
| 541 | |
| 542 | pub async fn do_update_part(&self, part: serde_json::Value) -> Result<(), ToolError> { |
| 543 | if let Some(ref callback) = self.update_part { |
| 544 | callback(part).await |
| 545 | } else { |
| 546 | Ok(()) |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | pub fn with_update_message<F, Fut>(mut self, callback: F) -> Self |
| 551 | where |
no outgoing calls
no test coverage detected