-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Sync
trait for rpm::Error
#191
Comments
@dralley Is there a straightforward way we can take to implement this? |
Dunno, you could try annotating the error type with |
One can annotate neither |
Which might not be possible due to:
which is caused by fact that the GPG errors use |
Apologies, I won't be able to look at this much until the weekend (really busy at the moment) but I'm definitely interested in making it easier to use. |
You can do it like this if you like: e61be9b |
Great, it works for me! Thank you and can you please make a pull request with the changes? |
I'll hold off on it for now because I haven't checked for definite that the
wrapped errors are *Sync* and *Send*. If they're not then there could be
some fun breakages. I just wanted to propose a potential way forward.
…On Thu, 9 Nov 2023 at 17:15, Martin Liška ***@***.***> wrote:
You can do it like this if you like: e61be9b
<e61be9b>
Great, it works for me! Thank you and can you please make a pull request
with the changes?
—
Reply to this email directly, view it on GitHub
<#191 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPA36I6W37LWEL7HDSPYL3YDUFTRAVCNFSM6AAAAAA6VA5UROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBUGIZTONJYGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@cmeister2 @marxin Are you OK with the solution in #198 ? |
Yes, it looks very elegant. |
Yep, I like it much. |
I would like to use a return type equal to
anyhow::Result<RPMFile>
for a multi-threaded code and I face the following issue:The text was updated successfully, but these errors were encountered: