Enum keyring::native::credential::CredentialPersistence
source · #[non_exhaustive]pub enum CredentialPersistence {
EntryOnly,
ProcessOnly,
UntilReboot,
UntilDelete,
}Expand description
A descriptor for the lifetime of stored credentials, returned from a credential store’s persistence call.
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
Credentials vanish when the entry vanishes (stored in the entry)
ProcessOnly
Credentials vanish when the process terminates (stored in process memory)
UntilReboot
Credentials persist until the machine reboots (stored in kernel memory)
UntilDelete
Credentials persist until they are explicitly deleted (stored on disk)
Auto Trait Implementations§
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