Function run_error_handle_function

Source
pub fn run_error_handle_function<E: ErrorHandlerFunction>(
    func: E,
    error: &str,
) -> SpawnResult
Expand description

Executes an error-handling function with a given error message within a panic-safe context.

  • func: A function implementing the ErrorHandlerFunction trait.
  • error: A string slice representing the error message.
  • Returns: A SpawnResult indicating the success or failure of the error-handling function execution.