pub struct KeyDerivationCache { /* private fields */ }Expand description
Key derivation cache for performance
Implementations§
Source§impl KeyDerivationCache
impl KeyDerivationCache
Sourcepub fn get(&self, path: &DerivationPath) -> Option<DerivedKey>
pub fn get(&self, path: &DerivationPath) -> Option<DerivedKey>
Get cached key
Sourcepub fn insert(&self, path: DerivationPath, key: DerivedKey)
pub fn insert(&self, path: DerivationPath, key: DerivedKey)
Insert key into cache
Auto Trait Implementations§
impl !Freeze for KeyDerivationCache
impl RefUnwindSafe for KeyDerivationCache
impl Send for KeyDerivationCache
impl Sync for KeyDerivationCache
impl Unpin for KeyDerivationCache
impl UnwindSafe for KeyDerivationCache
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