pub struct Cached<F> { /* private fields */ }Expand description
A registry read from disk, refetched when it has gone stale.
The cache path is a constructor argument rather than something read from the
environment inside, for the reason auth has no load_default: a function
that resolves its own path cannot be tested without writing to the process
environment, and the mutation gate reports it as an undetectable survivor.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Cached<F>where
F: Freeze,
impl<F> RefUnwindSafe for Cached<F>where
F: RefUnwindSafe,
impl<F> Send for Cached<F>where
F: Send,
impl<F> Sync for Cached<F>where
F: Sync,
impl<F> Unpin for Cached<F>where
F: Unpin,
impl<F> UnsafeUnpin for Cached<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Cached<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more