A registry reading time from `clock` instead of the system clock (tests; a host with its own trusted clock).
(clock: Arc<dyn Fn() -> DateTime<Utc> + Send + Sync>)
| 355 | /// A registry reading time from `clock` instead of the system clock |
| 356 | /// (tests; a host with its own trusted clock). |
| 357 | pub fn with_clock(clock: Arc<dyn Fn() -> DateTime<Utc> + Send + Sync>) -> Self { |
| 358 | Self { |
| 359 | inner: Arc::default(), |
| 360 | clock, |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | /// The registry's lock. A panic while it was held poisons the mutex; the |
| 365 | /// registry's invariants do not depend on unwinding, so a poisoned lock |
nothing calls this directly
no outgoing calls
no test coverage detected