pub struct VerificationCache { /* private fields */ }Expand description
Thread-safe LRU cache for signature verification results.
Implementations§
Source§impl VerificationCache
impl VerificationCache
Sourcepub fn get(
&self,
algorithm: &str,
public_key: &[u8],
message: &[u8],
signature: &[u8],
) -> Option<bool>
pub fn get( &self, algorithm: &str, public_key: &[u8], message: &[u8], signature: &[u8], ) -> Option<bool>
Look up a cached result. Returns Some(verified) on hit,
None on miss.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VerificationCache
impl RefUnwindSafe for VerificationCache
impl Send for VerificationCache
impl Sync for VerificationCache
impl Unpin for VerificationCache
impl UnsafeUnpin for VerificationCache
impl UnwindSafe for VerificationCache
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