pub struct MemoryConfigStore { /* private fields */ }Expand description
In-memory config store for ephemeral settings.
Implementations§
Trait Implementations§
Source§impl ConfigStore for MemoryConfigStore
impl ConfigStore for MemoryConfigStore
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 MemoryConfigStore
impl !RefUnwindSafe for MemoryConfigStore
impl Send for MemoryConfigStore
impl Sync for MemoryConfigStore
impl Unpin for MemoryConfigStore
impl UnsafeUnpin for MemoryConfigStore
impl !UnwindSafe for MemoryConfigStore
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