pub struct FileCachedAppProvider { /* private fields */ }
Expand description
AppProvider implementation that uses a toml file as a cache for storing apps. This will only work on platforms where the is a filesystem available.
Implementations§
Trait Implementations§
Source§impl AppProvider for FileCachedAppProvider
impl AppProvider for FileCachedAppProvider
Source§fn get_app_for<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instance_domain: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<RegisteredApp, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_app_for<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instance_domain: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<RegisteredApp, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
If we don’t yet have an app registered at that instance, register it and return
the RegisteredApp. Otherwise, return the already existing RegisteredApp.
Auto Trait Implementations§
impl Freeze for FileCachedAppProvider
impl RefUnwindSafe for FileCachedAppProvider
impl Send for FileCachedAppProvider
impl Sync for FileCachedAppProvider
impl Unpin for FileCachedAppProvider
impl UnwindSafe for FileCachedAppProvider
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