pub struct KeyringBundleStore { /* private fields */ }Expand description
Stores the bundle in the OS keychain via the keyring crate.
Implementations§
Trait Implementations§
Source§impl BundleStore for KeyringBundleStore
impl BundleStore for KeyringBundleStore
Source§fn create(&self, bundle: &CredentialBundle) -> Result<BundleCreateOutcome>
fn create(&self, bundle: &CredentialBundle) -> Result<BundleCreateOutcome>
Windows and Linux have different credential-store write semantics and no evidence of the same multi-prompt problem macOS has, so they keep the generic check-then-write pattern here (ADR-0015) — still one item instead of two, just without a specific one-call claim.
Source§fn read(&self) -> Result<Option<CredentialBundle>>
fn read(&self) -> Result<Option<CredentialBundle>>
Read the stored bundle, or
None if nothing is stored yet.Source§fn write(&self, bundle: &CredentialBundle) -> Result<()>
fn write(&self, bundle: &CredentialBundle) -> Result<()>
Unconditionally persist
bundle, overwriting any existing one. Used
for explicit rotation and for a repair that merges in new credential
material — both read first, then write, deliberately never trying to
collapse that into one call (ADR-0015).Auto Trait Implementations§
impl Forget for KeyringBundleStore
impl Freeze for KeyringBundleStore
impl Move for KeyringBundleStore
impl RefUnwindSafe for KeyringBundleStore
impl Send for KeyringBundleStore
impl Sync for KeyringBundleStore
impl Unpin for KeyringBundleStore
impl UnsafeUnpin for KeyringBundleStore
impl UnwindSafe for KeyringBundleStore
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