Return a clone of the currently-installed audit context, if any.
()
| 54 | |
| 55 | /// Return a clone of the currently-installed audit context, if any. |
| 56 | pub fn current() -> Option<AuditCtx> { |
| 57 | CURRENT.with(|c| c.borrow().clone()) |
| 58 | } |
| 59 | |
| 60 | #[cfg(test)] |
| 61 | mod tests { |