pub trait MetaStore:
Send
+ Sync
+ 'static {
// Required methods
fn save_hard_state(&self, state: &HardState) -> Result<(), Error>;
fn load_hard_state(&self) -> Result<Option<HardState>, Error>;
// Provided methods
fn flush(&self) -> Result<(), Error> { ... }
fn flush_async<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
}Expand description
Metadata storage operations