-
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide conversion utilities around Result<T, ServerFnError<E>>
This adds 3 new traits: - `ConvertServerFnResult` provides easy conversion from `Result<T, ServerFnError<SourceCustErr>>` to `Result<T, ServerFnError<TargetCustError>>` when `TargetCustError` implements `From<SourceCustErr>` - `ConvertDefaultServerFnResult` provides easy conversion from `Result<T, ServerFnError<NoCustomError>` to `Result<T, ServerFnError<TargetCustError>>` - `IntoServerFnResult` provides easy conversion from `Result<T, E>` to `Result<T, ServerFnError::ServerError>` when `E` implements `std::error::Error` Fixes #3153 and #3155
- Loading branch information
1 parent
3d4b681
commit a9ad221
Showing
1 changed file
with
189 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters