pub struct Entry { /* private fields */ }Expand description
An entry in the signature verification cache.
You can iterate over the cache using
SignatureVerificationCache::dump.
Two entries are considered equal if their values are identical; the metadata is ignored.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn value(&self) -> &[u8] ⓘ
pub fn value(&self) -> &[u8] ⓘ
Returns the cache entry’s value.
This value is opaque and must not be interpreted.
You can write this value to disk, and restore it using
SignatureVerificationCache::restore.
Sourcepub fn inserted(&self) -> bool
pub fn inserted(&self) -> bool
Whether the entry was inserted since the program started.
Entries added by SignatureVerificationCache::restore have
this cleared. Entries added as a side effect of a signature
verification have this set.
Sourcepub fn accessed(&self) -> bool
pub fn accessed(&self) -> bool
Whether the entry was accessed.
An entry added by SignatureVerificationCache::restore
initially is not considered to have been accessed. This is
set when an entry is used by the signature verification code.