(&self, request: PermissionRequest)
| 373 | } |
| 374 | |
| 375 | pub async fn ask_permission(&self, request: PermissionRequest) -> Result<(), ToolError> { |
| 376 | if let Some(ref callback) = self.ask { |
| 377 | callback(request).await |
| 378 | } else { |
| 379 | Ok(()) |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | pub fn with_ask_question<F, Fut>(mut self, callback: F) -> Self |
| 384 | where |
no outgoing calls
no test coverage detected