pub fn run_error_handle_function<E>(
func: E,
error: &str,
) -> Result<(), Box<dyn Any + Send>>where
E: ErrorHandlerFunction,Expand description
Executes an error-handling function with a given error message within a panic-safe context.
func: A function implementing theErrorHandlerFunctiontrait.error: A string slice representing the error message.- Returns: A
SpawnResultindicating the success or failure of the error-handling function execution.