windows-bindgen
should generate more specific Result<T, E>
types
#3294
Labels
enhancement
New feature or request
Rather than folding all error types into the
windows_result::Error
type, APIs can more specifically returnResult<T, HRESULT>
,Result<T, NTSTATUS>
, and so on. This would avoid the overhead that necessitated #3126 and allow simple pattern matching for error handling. The reasoning around the Windows-specificResult<T, Error>
is that it additionally carries anyIErrorInfo
that may have been associated with the calling thread. This turns out to be used by very few APIs but can still be supported as needed through conversion.The text was updated successfully, but these errors were encountered: