pub fn from_env(env: EnvironmentBuilder, path: &Path) -> Result<Rkv, StoreError> {
        if !path.is_dir() {
            return Err(StoreError::DirectoryDoesNotExistError(path.into()));
        }

        Ok(Rkv {
            path: path.into(),
            env: env.open(path).map_err(|e| match e {
                lmdb::Error::Other(2) => StoreError::DirectoryDoesNotExistError(path.into()),
                e => StoreError::LmdbError(e),
            })?,
        })
    }
/// Return a new Rkv environment from the provided builder.
Return a new Rkv environment from the provided builder.
Return a new Rkv environment from the provided builder .
pub fn from_env(env: EnvironmentBuilder, path: &Path) -> Result<Rkv, StoreError> {
        if !path.is_dir() {
            return Err(StoreError::DirectoryDoesNotExistError(path.into()));
        }
        Ok(Rkv {
            path: path.into(),
            env: env.open(path).map_err(|e| match e {
                lmdb::Error::Other(2) => StoreError::DirectoryDoesNotExistError(path.into()),
                e => StoreError::LmdbError(e),
            })?,
        })
    }
pub fn from_env ( env : EnvironmentBuilder , path : & Path ) -> Result < Rkv , StoreError > { if ! path . is_dir ( ) { return Err ( StoreError :: DirectoryDoesNotExistError ( path . into ( ) ) ) ; } Ok ( Rkv { path : path . into ( ) , env : env . open ( path ) . map_err ( | e | match e { lmdb :: Error :: Other ( 2 ) => StoreError :: DirectoryDoesNotExistError ( path . into ( ) ) , e => StoreError :: LmdbError ( e ) , } ) ? , } ) }
Return a new Rkv environment from the provided builder.
Return a new Rkv environment from the provided builder .
env
EnvironmentBuilder
path
&Path
env
EnvironmentBuilder
path
&Path