pub struct ForeignStore {
pub storage: Arc<dyn StorageAdapter>,
}Fields§
§storage: Arc<dyn StorageAdapter>Trait Implementations§
Source§impl CredentialStore for ForeignStore
impl CredentialStore for ForeignStore
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Token>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Token>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load the credential for exactly one key.
Source§fn prepare_write<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn prepare_write<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Preflight writes before token rotation; stores needing no probe inherit the no-op.
Source§fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
profile: &'life1 str,
token: &'life2 Token,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
profile: &'life1 str,
token: &'life2 Token,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Persist a credential while preserving unrelated keys.
Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a credential, succeeding if it is already absent.
Source§fn lock<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StorageLock>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn lock<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 str,
timeout: Duration,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StorageLock>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Acquire an exclusive refresh lease or fail within the timeout.
Auto Trait Implementations§
impl !RefUnwindSafe for ForeignStore
impl !UnwindSafe for ForeignStore
impl Freeze for ForeignStore
impl Send for ForeignStore
impl Sync for ForeignStore
impl Unpin for ForeignStore
impl UnsafeUnpin for ForeignStore
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