set_default_store

Function set_default_store 

Source
pub fn set_default_store(new: Arc<CredentialStore>)
Expand description

Set the credential store used by default to create entries.

This is meant for use by clients who use one credential store. If you are using multiple credential stores and want precise control over which credential is in which store, you may prefer to have your store build entries directly.

This will block waiting for all other threads currently creating entries to complete what they are doing. It’s really meant to be called at startup before creating any entries.