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.
Trait Implementations§
source§impl Ord for Entry
impl Ord for Entry
source§impl PartialEq for Entry
impl PartialEq for Entry
source§impl PartialOrd for Entry
impl PartialOrd for Entry
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Entry
Auto Trait Implementations§
impl !Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)