pub struct BaseScopedStorageOptionsProvider { /* private fields */ }Expand description
A StorageOptionsProvider that resolves another accessor’s options for a
single base path scope.
Fetching through this provider first refreshes the parent accessor when its
options have expired, then resolves the refreshed options for the scope. As
a result, dynamically vended per-base credentials (e.g. a namespace server
returning base_<id>.<key> entries in one flat map) stay fresh per base.
Implementations§
Trait Implementations§
Source§impl StorageOptionsProvider for BaseScopedStorageOptionsProvider
impl StorageOptionsProvider for BaseScopedStorageOptionsProvider
Source§fn fetch_storage_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<HashMap<String, String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_storage_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<HashMap<String, String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch fresh storage options Read more
Source§fn force_fetch_storage_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<HashMap<String, String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn force_fetch_storage_options<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<HashMap<String, String>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch fresh storage options, bypassing caches along the chain. Read more
Source§fn provider_id(&self) -> String
fn provider_id(&self) -> String
Return a human-readable unique identifier for this provider instance Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BaseScopedStorageOptionsProvider
impl !UnwindSafe for BaseScopedStorageOptionsProvider
impl Freeze for BaseScopedStorageOptionsProvider
impl Send for BaseScopedStorageOptionsProvider
impl Sync for BaseScopedStorageOptionsProvider
impl Unpin for BaseScopedStorageOptionsProvider
impl UnsafeUnpin for BaseScopedStorageOptionsProvider
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreCreates a shared type from an unshared type.