(&self)
| 2380 | |
| 2381 | #[inline] |
| 2382 | pub(crate) fn validate_sync_call(&self) -> Result<()> { |
| 2383 | #[cfg(feature = "async")] |
| 2384 | if self.async_state.async_required { |
| 2385 | bail!("store configuration requires that `*_async` functions are used instead"); |
| 2386 | } |
| 2387 | Ok(()) |
| 2388 | } |
| 2389 | |
| 2390 | /// Returns whether this store is presently on a fiber and is allowed to |
| 2391 | /// block via `block_on` with fibers. |
no test coverage detected