#[non_exhaustive]pub enum CredentialPersistence {
EntryOnly,
ProcessOnly,
UntilLogout,
UntilReboot,
UntilDelete,
Unspecified,
}
Expand description
A descriptor for the lifetime of stored credentials, returned from a credential store’s persistence call.
This enum may change even in minor and patch versions of the library, so it’s marked as non-exhaustive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EntryOnly
Credential storage is in the entry, so storage vanishes when the entry is dropped.
ProcessOnly
Credential storage is in process memory, so storage vanishes when the process terminates
UntilLogout
Credential storage is in user-space memory, so storage vanishes when the user logs out
UntilReboot
Credentials stored in kernel-space memory, so storage vanishes when the machine reboots
UntilDelete
Credentials stored on disk, so storage vanishes when the credential is deleted
Unspecified
Placeholder for cases not (yet) handled here
Auto Trait Implementations§
impl Freeze for CredentialPersistence
impl RefUnwindSafe for CredentialPersistence
impl Send for CredentialPersistence
impl Sync for CredentialPersistence
impl Unpin for CredentialPersistence
impl UnwindSafe for CredentialPersistence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more