(&mut self, event: crate::DebugEvent<'_>)
| 2505 | |
| 2506 | #[cfg(feature = "debug")] |
| 2507 | fn block_on_debug_handler(&mut self, event: crate::DebugEvent<'_>) -> crate::Result<()> { |
| 2508 | if let Some(handler) = self.debug_handler.take() { |
| 2509 | if !self.can_block() { |
| 2510 | bail!("could not invoke debug handler without async context"); |
| 2511 | } |
| 2512 | log::trace!("about to raise debug event {event:?}"); |
| 2513 | StoreContextMut(self).with_blocking(|store, cx| { |
| 2514 | cx.block_on(Pin::from(handler.handle(store, event)).as_mut()) |
| 2515 | }) |
| 2516 | } else { |
| 2517 | Ok(()) |
| 2518 | } |
| 2519 | } |
| 2520 | } |
| 2521 | |
| 2522 | impl<T> StoreInner<T> { |
no test coverage detected