Skip to content

Add custom error type for callback functions.

Jeremy Soller requested to merge batonius:custom-error into master

Created by: batonius

Allows callback functions to return Result with a custom error type as long as it implements From<std::io::Error>, the specified error type is then used in the return types of trigger, trigger_all and run.

Since the new error type parameter defaults to std::io::Error, the PR doesn't break existing code.

Merge request reports