pub(crate) fn update_db_rules<F, E>(
        &self,
        db_name: &DatabaseName<'static>,
        update: F,
    ) -> std::result::Result<Arc<DatabaseRules>, UpdateError<E>>
    where
        F: FnOnce(DatabaseRules) -> std::result::Result<DatabaseRules, E>,
    {
        // TODO: implement for non-initialized databases
        let db = self
            .db_initialized(db_name)
            .context(DatabaseNotFound { db_name })?;

        db.update_rules(update).map_err(UpdateError::Closure)
    }
/// Update database rules of a fully initialized database.
Update database rules of a fully initialized database.
Update database rules of a fully initialized database .
pub(crate) fn update_db_rules<F, E>(
        &self,
        db_name: &DatabaseName<'static>,
        update: F,
    ) -> std::result::Result<Arc<DatabaseRules>, UpdateError<E>>
    where
        F: FnOnce(DatabaseRules) -> std::result::Result<DatabaseRules, E>,
    {
        // TODO: implement for non-initialized databases
        let db = self
            .db_initialized(db_name)
            .context(DatabaseNotFound { db_name })?;
        db.update_rules(update).map_err(UpdateError::Closure)
    }
pub ( crate ) fn update_db_rules < F , E > ( & self , db_name : & DatabaseName < ' static > , update : F , ) -> std :: result :: Result < Arc < DatabaseRules > , UpdateError < E > > where F : FnOnce ( DatabaseRules ) -> std :: result :: Result < DatabaseRules , E > , { // TODO: implement for non-initialized databases let db = self . db_initialized ( db_name ) . context ( DatabaseNotFound { db_name } ) ? ; db . update_rules ( update ) . map_err ( UpdateError :: Closure ) }
Update database rules of a fully initialized database.
Update database rules of a fully initialized database .
&self
db_name
&DatabaseName<'static>
update
F
&self
db_name
&DatabaseName<'static>
update
F