pub struct FileConfigStore { /* private fields */ }Expand description
File-backed config store with optional bootstrap template.
Implementations§
Trait Implementations§
Source§impl ConfigStore for FileConfigStore
impl ConfigStore for FileConfigStore
Source§fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Config, ConfigError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Config, ConfigError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the current config.
Source§fn set<'life0, 'async_trait>(
&'life0 self,
config: Config,
) -> Pin<Box<dyn Future<Output = Result<(), ConfigError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set<'life0, 'async_trait>(
&'life0 self,
config: Config,
) -> Pin<Box<dyn Future<Output = Result<(), ConfigError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Persist the provided config.
Source§fn patch<'life0, 'async_trait>(
&'life0 self,
delta: ConfigDelta,
) -> Pin<Box<dyn Future<Output = Result<Config, ConfigError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn patch<'life0, 'async_trait>(
&'life0 self,
delta: ConfigDelta,
) -> Pin<Box<dyn Future<Output = Result<Config, ConfigError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Apply a config patch and return the updated config.
Source§fn metadata(&self) -> Option<ConfigStoreMetadata>
fn metadata(&self) -> Option<ConfigStoreMetadata>
Optional metadata to expose on config APIs.
Auto Trait Implementations§
impl Freeze for FileConfigStore
impl RefUnwindSafe for FileConfigStore
impl Send for FileConfigStore
impl Sync for FileConfigStore
impl Unpin for FileConfigStore
impl UnsafeUnpin for FileConfigStore
impl UnwindSafe for FileConfigStore
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