pub struct KeyringSecretStore { /* private fields */ }Implementations§
Source§impl KeyringSecretStore
impl KeyringSecretStore
Sourcepub fn try_new(
service: impl Into<String>,
user: impl Into<String>,
) -> Result<KeyringSecretStore, AppError>
pub fn try_new( service: impl Into<String>, user: impl Into<String>, ) -> Result<KeyringSecretStore, AppError>
Initialise the keyring secret store and register the platform default
credential store on first call. Returns an error (rather than panicking
or silently degrading) when the backend is unavailable, so that the
failure surfaces clearly at process startup instead of as a
“secrets not found” misdirection later. This is the only constructor —
callers must handle the Err arm rather than panicking via .unwrap().
Trait Implementations§
Source§impl SecretStore for KeyringSecretStore
impl SecretStore for KeyringSecretStore
fn get( &self, ) -> Pin<Box<dyn Future<Output = Result<Option<ServerSecrets>, AppError>> + Send + '_>>
fn set( &self, secrets: &ServerSecrets, ) -> Pin<Box<dyn Future<Output = Result<(), AppError>> + Send + '_>>
Source§fn get_bootstrap_seed(
&self,
) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, AppError>> + Send + '_>>
fn get_bootstrap_seed( &self, ) -> Pin<Box<dyn Future<Output = Result<Option<[u8; 32]>, AppError>> + Send + '_>>
Read the persisted offline-bootstrap ephemeral seed, if any. Read more
Auto Trait Implementations§
impl Freeze for KeyringSecretStore
impl RefUnwindSafe for KeyringSecretStore
impl Send for KeyringSecretStore
impl Sync for KeyringSecretStore
impl Unpin for KeyringSecretStore
impl UnsafeUnpin for KeyringSecretStore
impl UnwindSafe for KeyringSecretStore
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