Type Alias MDB_str2key_func

Source
pub type MDB_str2key_func = Option<unsafe extern "C" fn(passwd: *const c_char, key: *mut MDB_val) -> c_int>;
Expand description

A function for converting a string into an encryption key.

§Arguments

  • passwd (direction in) - The string to be converted.
  • key (direction in, out) - The resulting key. The caller must provide the space for the key.

§Returns

0 on success, non-zero on failure.

Aliased Type§

enum MDB_str2key_func {
    None,
    Some(unsafe extern "C" fn(_: *const i8, _: *mut MDB_val) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const i8, _: *mut MDB_val) -> i32)

Some value of type T.