pub struct NullKeyCache;Expand description
A KeyCache that retains no decoded keys.
Implementations§
Source§impl NullKeyCache
impl NullKeyCache
Trait Implementations§
Source§impl Clone for NullKeyCache
impl Clone for NullKeyCache
impl Copy for NullKeyCache
Source§impl Debug for NullKeyCache
impl Debug for NullKeyCache
Source§impl Default for NullKeyCache
impl Default for NullKeyCache
Source§impl KeyCache for NullKeyCache
impl KeyCache for NullKeyCache
Source§fn get(&self, _encoded: &[u8; 32]) -> Option<&CachedPublicKey>
fn get(&self, _encoded: &[u8; 32]) -> Option<&CachedPublicKey>
Borrow a cached key, or
None if it is absent. Implementations may
update recency state through interior mutability.Source§fn insert(&mut self, _key: CachedPublicKey)
fn insert(&mut self, _key: CachedPublicKey)
Optionally retain an already-decoded key for later chunks or batches.
The default implementation leaves the cache unchanged.
Auto Trait Implementations§
impl Freeze for NullKeyCache
impl RefUnwindSafe for NullKeyCache
impl Send for NullKeyCache
impl Sync for NullKeyCache
impl Unpin for NullKeyCache
impl UnsafeUnpin for NullKeyCache
impl UnwindSafe for NullKeyCache
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