pub fn new<D: MetaDb>(mode: PruningMode, db: &D) -> Result<StateDb<BlockHash, Key>, Error<D::Error>> {
		Ok(StateDb {
			db: RwLock::new(StateDbSync::new(mode, db)?)
		})
	}
/// Creates a new instance. Does not expect any metadata in the database.
Creates a new instance. Does not expect any metadata in the database.
Creates a new instance . Does not expect any metadata in the database .
pub fn new<D: MetaDb>(mode: PruningMode, db: &D) -> Result<StateDb<BlockHash, Key>, Error<D::Error>> {
		Ok(StateDb {
			db: RwLock::new(StateDbSync::new(mode, db)?)
		})
	}
pub fn new < D : MetaDb > ( mode : PruningMode , db : & D ) -> Result < StateDb < BlockHash , Key > , Error < D :: Error > > { Ok ( StateDb { db : RwLock :: new ( StateDbSync :: new ( mode , db ) ? ) } ) }
Creates a new instance.
Creates a new instance .
mode
PruningMode
db
&D
mode
PruningMode
db
&D