pub unsafe extern "C" fn mdb_env_set_assert(
env: *mut MDB_env,
func: MDB_assert_func,
) -> c_int
Expand description
Set or reset the assert() callback of the environment. Disabled if liblmdb is built with NDEBUG.
Note: This hack should become obsolete as lmdb’s error handling matures.
§Arguments
env
(direction in) - An environment handle returned by #mdb_env_create().func
(direction in) - An #MDB_assert_func function, or 0.
§Returns
A non-zero error value on failure and 0 on success.