This repository was archived by the owner on Sep 11, 2024. It is now read-only.
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Should the safe query_interface
return a Result<Interface, HResult>
instead of a Option<Interface>
? #176
Open
Description
We assume that if a call to QueryInterface
doesn't return success, that the requested interface is not implemented for the backing class. But it is possible that some implementations may return non-standard errors. Should we provide the ability for the user to inspect the error to ensure that E_NOINTERFACE
is returned and if not, do something else with the error?