Skip to content

Difference between UnitResult<T> and Result #398

Answered by vkhorikov
lonix1 asked this question in Q&A
Discussion options

You must be logged in to vote

Result is a shortcut for Result<Unit, string>, whereas UnitResult is a shortcut for Result<Unit, T>. The difference is that in UnitResult the error type may vary, whereas in Result it's set to string. See also this discussion: #321

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lonix1
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants