pub struct Metadata { /* private fields */ }
Expand description
Information about a cache entry.
Implementations§
source§impl Metadata
impl Metadata
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§
Auto Trait Implementations§
impl !Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)