|
|
@ -183,12 +183,21 @@ async fn save<R: Runtime>(
|
|
|
|
with_store(app, stores, path, |store| store.save())
|
|
|
|
with_store(app, stores, path, |store| store.save())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Default)]
|
|
|
|
// #[derive(Default)]
|
|
|
|
pub struct Builder<R: Runtime> {
|
|
|
|
pub struct Builder<R: Runtime> {
|
|
|
|
stores: HashMap<PathBuf, Store<R>>,
|
|
|
|
stores: HashMap<PathBuf, Store<R>>,
|
|
|
|
frozen: bool,
|
|
|
|
frozen: bool,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
impl<R: Runtime> Default for Builder<R> {
|
|
|
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
|
|
|
Self {
|
|
|
|
|
|
|
|
stores: Default::default(),
|
|
|
|
|
|
|
|
frozen: false,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
impl<R: Runtime> Builder<R> {
|
|
|
|
impl<R: Runtime> Builder<R> {
|
|
|
|
/// Registers a store with the plugin.
|
|
|
|
/// Registers a store with the plugin.
|
|
|
|
///
|
|
|
|
///
|
|
|
|