Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

zbox::Error is not accessible from within std::io::Error #65

Open
vi opened this issue Dec 30, 2019 · 1 comment
Open

zbox::Error is not accessible from within std::io::Error #65

vi opened this issue Dec 30, 2019 · 1 comment

Comments

@vi
Copy link

vi commented Dec 30, 2019

Only text description is copied into std::io::Error, not the actual matchable zbox::Error.

@burmecia
Copy link
Contributor

There is a variant Io error in Zbox::Error https://docs.rs/zbox/0.8.8/zbox/enum.Error.html. Not sure why you cannot match it? Could you post your code?

Or maybe you're talking about convert Zbox::Error to Io::Error? In this case, you can only get description not the error kind. That's because many Zbox errors are not storage IO related, so there is no error kind for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants