Skip to main content

set_keyring_service

Function set_keyring_service 

Source
pub fn set_keyring_service(name: impl Into<String>) -> Result<(), KeyError>
Expand description

Register the process-wide keyring: the service name every entry is stored under, and the platform keyring store that backs it. Both are one-time startup registration and must run before any key operation. The store is installed before the name is recorded, so a failed installation leaves no registration behind. Re-registering the same name is a no-op; a different name is a startup contradiction and fails. Fails with KeyError::UnsupportedKeyringPlatform on a target with no bundled store.