pub unsafe extern "C" fn nix_err_info_msg(
context: *mut nix_c_context,
read_context: *const nix_c_context,
callback: nix_get_string_callback,
user_data: *mut c_void,
) -> nix_err
Expand description
Retrieves the error message from errorInfo in a context. Used to inspect nix Error messages. @pre This function should only be called after a previous nix function has returned a NIX_ERR_NIX_ERROR
§Arguments
context
[out] - optional, the context to store errors in if this function failsread_context
[in] - the context to retrieve the error message from.callback
[in] - Called with the error message.user_data
[in] - optional, arbitrary data, passed to the callback when it’s called.
§See also
§Returns
NIX_OK if there were no errors, an error code otherwise.