fn new_vault(env: EnvironmentRead, allow_private: bool) -> DatabaseResult<Self> {
        let headers = env.get_db(&*ELEMENT_VAULT_HEADERS)?;
        let entries = env.get_db(&*ELEMENT_VAULT_PUBLIC_ENTRIES)?;
        let private_entries = if allow_private {
            Some(env.get_db(&*ELEMENT_VAULT_PRIVATE_ENTRIES)?)
        } else {
            None
        };
        Self::new(env, entries, private_entries, headers)
    }
/// Construct a element buf using the vault databases
Construct a element buf using the vault databases
Construct a element buf using the vault databases
fn new_vault(env: EnvironmentRead, allow_private: bool) -> DatabaseResult<Self> {
        let headers = env.get_db(&*ELEMENT_VAULT_HEADERS)?;
        let entries = env.get_db(&*ELEMENT_VAULT_PUBLIC_ENTRIES)?;
        let private_entries = if allow_private {
            Some(env.get_db(&*ELEMENT_VAULT_PRIVATE_ENTRIES)?)
        } else {
            None
        };
        Self::new(env, entries, private_entries, headers)
    }
fn new_vault ( env : EnvironmentRead , allow_private : bool ) -> DatabaseResult < Self > { let headers = env . get_db ( & * ELEMENT_VAULT_HEADERS ) ? ; let entries = env . get_db ( & * ELEMENT_VAULT_PUBLIC_ENTRIES ) ? ; let private_entries = if allow_private { Some ( env . get_db ( & * ELEMENT_VAULT_PRIVATE_ENTRIES ) ? ) } else { None } ; Self :: new ( env , entries , private_entries , headers ) }
Construct a element buf using the vault databases
Construct a element buf using the vault databases
env
EnvironmentRead
allow_private
bool
env
EnvironmentRead
allow_private
bool