The registry's lock. A panic while it was held poisons the mutex; the registry's invariants do not depend on unwinding, so a poisoned lock is recovered rather than turning one bad request into every later request panicking.
(&self)
| 366 | /// is recovered rather than turning one bad request into every later |
| 367 | /// request panicking. |
| 368 | fn lock(&self) -> std::sync::MutexGuard<'_, Registry> { |
| 369 | self.inner.lock().unwrap_or_else(|e| e.into_inner()) |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | impl SandboxGrants for InMemorySandboxGrants { |