You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.
format_err! and string-based errors are good for this initial prototype, but aren't a great long-term solution for a library API. Instead, some type should implement Fail, and the library should use errors of this type. Since ReturnCode already exists and corresponds to the different error codes returned from libyubihsm, it would be a good candidate for implementing Fail.
The text was updated successfully, but these errors were encountered:
As I noted on another issue, what failure enables which is pretty nice is having several different error types in a single crate, all of which compose as failure::Error in Result types.
For this crate, you probably want a ConnectorError and a SessionError type
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
format_err!
and string-based errors are good for this initial prototype, but aren't a great long-term solution for a library API. Instead, some type should implementFail
, and the library should use errors of this type. SinceReturnCode
already exists and corresponds to the different error codes returned from libyubihsm, it would be a good candidate for implementingFail
.The text was updated successfully, but these errors were encountered: