pub fn garbage_collect_vault(&mut self, key: &Key<P>, vid: VaultId) -> crate::Result<()> {
        if let Some(vault) = self.vaults.get_mut(&vid) {
            if &vault.key == key {
                vault.garbage_collect();
            }
        }

        Ok(())
    }
/// Garbage collect a [`Vault`]. Deletes any records that contain revocation transactions.
Garbage collect a [`Vault`]. Deletes any records that contain revocation transactions.
Garbage collect a [ ` Vault ` ] . Deletes any records that contain revocation transactions .
pub fn garbage_collect_vault(&mut self, key: &Key<P>, vid: VaultId) -> crate::Result<()> {
        if let Some(vault) = self.vaults.get_mut(&vid) {
            if &vault.key == key {
                vault.garbage_collect();
            }
        }
        Ok(())
    }
pub fn garbage_collect_vault ( & mut self , key : & Key < P > , vid : VaultId ) -> crate :: Result < ( ) > { if let Some ( vault ) = self . vaults . get_mut ( & vid ) { if & vault . key == key { vault . garbage_collect ( ) ; } } Ok ( ( ) ) }
Garbage collect a [`Vault`].
Garbage collect a [ ` Vault ` ] .
&mut self
key
&Key<P>
vid
VaultId
&mut self
key
&Key<P>
vid
VaultId