pub struct RevocationCache { /* private fields */ }Expand description
A cache of RFC-ACDP-0014 revocation facts and discovery-freshness
markers, injectable into a crate::RegistryClient via
crate::RegistryClient::with_revocation_cache.
Clone, cheap (an Arc handle). Sharing one clone across multiple
RegistryClients (or a CrossRegistryResolver’s per-authority clients)
is the point: it is how a caller amortizes discovery across many
verifications of the same producer.
Facts (verified revocations) are held for the cache’s lifetime and are
always unioned into classification. Markers (complete absences) suppress
a lookup only while younger than
RevocationDiscovery::freshness
— 300 s from both named constructors
(crate::RECOMMENDED_NEGATIVE_FRESHNESS), Duration::ZERO to never
suppress.
Implementations§
Trait Implementations§
Source§impl Clone for RevocationCache
impl Clone for RevocationCache
Source§impl Debug for RevocationCache
impl Debug for RevocationCache
Auto Trait Implementations§
impl Freeze for RevocationCache
impl RefUnwindSafe for RevocationCache
impl Send for RevocationCache
impl Sync for RevocationCache
impl Unpin for RevocationCache
impl UnsafeUnpin for RevocationCache
impl UnwindSafe for RevocationCache
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