Function mongocrypt_sys::mongocrypt_status_set
source · pub unsafe extern "C" fn mongocrypt_status_set(
status: *mut mongocrypt_status_t,
type_: mongocrypt_status_type_t,
code: u32,
message: *const c_char,
message_len: i32,
)
Expand description
Set a status object with message, type, and code.
Use this to set the @ref mongocrypt_status_t given in the crypto hooks.
@param[in] type The status type. @param[in] code The status code. @param[in] message The message. @param[in] message_len Due to historical behavior, pass 1 + the string length of @p message (which differs from other functions accepting string arguments). Alternatively, if message is NULL terminated this may be -1 to tell mongocrypt to determine the string’s length with strlen.