pub struct InMemoryConfigStore { /* private fields */ }Expand description
Non-persistent config store (used for --demo and tests).
Implementations§
Source§impl InMemoryConfigStore
impl InMemoryConfigStore
pub fn new(seed: ForgetopConfig) -> Self
Trait Implementations§
Source§impl ConfigStore for InMemoryConfigStore
impl ConfigStore for InMemoryConfigStore
fn load<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ForgetopConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ForgetopConfig,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for InMemoryConfigStore
impl RefUnwindSafe for InMemoryConfigStore
impl Send for InMemoryConfigStore
impl Sync for InMemoryConfigStore
impl Unpin for InMemoryConfigStore
impl UnsafeUnpin for InMemoryConfigStore
impl UnwindSafe for InMemoryConfigStore
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