Module keyring::credential
source · Expand description
This module defines a plug and play model for platform-specific credential stores.
The model comprises two traits: CredentialBuilder
for the store service
and Credential
for the credentials produced by the service.
Traits
This trait defines the API that all credentials must implement.
This trait defines the API that Credential Builders must implement.
Type Definitions
Credentials must be usable from multiple threads, and they must
be movable from thread to thread, so they must be Send and Sync.
Credential Builders must be Sync so they can be invoked from
multiple threads simultaneously. Although no one expects a
Credential Builder to be passed from one thread to another,
they are usually objects, so Send should be easy.