Function keyring::set_default_credential_builder

source ·
pub fn set_default_credential_builder(new: Box<CredentialBuilder>)
Expand description

Set the credential builder used by default to create entries.

This is really meant for use by clients who bring their own credential store and want to use it everywhere. If you are using multiple credential stores and want precise control over which credential is in which store, then use new_with_credential.

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 app startup before you start creating entries.