pub struct VaultKeyStore { /* private fields */ }Implementations§
Source§impl VaultKeyStore
impl VaultKeyStore
pub fn new() -> Self
pub fn set(&self, canonical_id: &str, key: Zeroizing<Vec<u8>>)
pub fn remove(&self, canonical_id: &str)
pub fn get(&self, canonical_id: &str) -> Option<Zeroizing<Vec<u8>>>
pub async fn acquire_fence( &self, canonical_id: &str, ) -> OwnedRwLockWriteGuard<()>
pub async fn read_fence(&self, canonical_id: &str)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VaultKeyStore
impl RefUnwindSafe for VaultKeyStore
impl Send for VaultKeyStore
impl Sync for VaultKeyStore
impl Unpin for VaultKeyStore
impl UnsafeUnpin for VaultKeyStore
impl UnwindSafe for VaultKeyStore
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