pub struct PersistentCache { /* private fields */ }Available on crate feature
persistent-cache only.Expand description
Persistent on-disk cache (feature persistent-cache).
Schema is versioned. Corrupt or mismatched files are treated as a miss (and optionally replaced on next put). Atomic writes use a temp file + rename.
Store persistent cache under the platform cache directory, not beside source files.
Implementations§
Trait Implementations§
Source§impl Debug for PersistentCache
impl Debug for PersistentCache
Source§impl DiscoveryCache for PersistentCache
impl DiscoveryCache for PersistentCache
Auto Trait Implementations§
impl !Freeze for PersistentCache
impl RefUnwindSafe for PersistentCache
impl Send for PersistentCache
impl Sync for PersistentCache
impl Unpin for PersistentCache
impl UnsafeUnpin for PersistentCache
impl UnwindSafe for PersistentCache
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