pub struct JsonConfigStore { /* private fields */ }Expand description
JSON-file config store with atomic (temp + rename) writes.
Implementations§
Trait Implementations§
Source§impl ConfigStore for JsonConfigStore
impl ConfigStore for JsonConfigStore
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 JsonConfigStore
impl RefUnwindSafe for JsonConfigStore
impl Send for JsonConfigStore
impl Sync for JsonConfigStore
impl Unpin for JsonConfigStore
impl UnsafeUnpin for JsonConfigStore
impl UnwindSafe for JsonConfigStore
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