pub struct KeychainStore;Expand description
The real store. The #[cfg] pairs are confined here so no other logic in
this module is invisible to a Linux build — the same shape
crate::anthropic::creds::resolve uses.
Trait Implementations§
Source§impl CredentialStore for KeychainStore
impl CredentialStore for KeychainStore
fn read_default(&self) -> Result<Option<String>>
fn write_default(&self, blob: &str) -> Result<()>
fn delete_default(&self) -> Result<()>
fn read_named(&self, config_dir: &Path) -> Result<Option<String>>
fn write_named(&self, config_dir: &Path, blob: &str) -> Result<()>
fn delete_named(&self, config_dir: &Path) -> Result<()>
Auto Trait Implementations§
impl Freeze for KeychainStore
impl RefUnwindSafe for KeychainStore
impl Send for KeychainStore
impl Sync for KeychainStore
impl Unpin for KeychainStore
impl UnsafeUnpin for KeychainStore
impl UnwindSafe for KeychainStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more